diff --git a/integ-test/script/README.md b/integ-test/script/README.md index 79b188158..7ce0c6886 100644 --- a/integ-test/script/README.md +++ b/integ-test/script/README.md @@ -17,7 +17,7 @@ Apart from the basic feature, it also has some advanced functionality includes: ### Usage To use this script, you need to have Python **3.6** or higher installed. It also requires the following Python libraries: ```shell -pip install requests pandas +pip install requests pandas openpyxl ``` After getting the requisite libraries, you can run the script with the following command line parameters in your shell: diff --git a/integ-test/script/SanityTest.py b/integ-test/script/SanityTest.py index 1c51d4d20..eb97752b4 100644 --- a/integ-test/script/SanityTest.py +++ b/integ-test/script/SanityTest.py @@ -101,7 +101,7 @@ def submit_query(self, query, session_id="Empty"): response.raise_for_status() return response_json except Exception as e: - return {"error": str(e), "response": response_json} + return {"error": f"{str(e)}, got response {response_json}"} # Call get API to check the query status def get_query_result(self, query_id): @@ -113,7 +113,7 @@ def get_query_result(self, query_id): response.raise_for_status() return response_json except Exception as e: - return {"status": "FAILED", "error": str(e), "response": response_json} + return {"status": "FAILED", "error": f"{str(e)}, got response {response_json}"} # Call delete API to cancel the query def cancel_query(self, query_id): @@ -204,6 +204,7 @@ def run_tests_from_csv(self, csv_file): futures = [self.executor.submit(self.run_test, query, seq_id, expected_status) for query, seq_id, expected_status in queries] for future in as_completed(futures): result = future.result() + self.logger.info(f"Completed test: {result["query_name"]}, {result["query"]}, got result status: {result["status"]}") self.test_results.append(result) def generate_report(self):