Save

 

Saving Test Cases

The Harness class provides save() and load() methods to save and load test configurations, generated test cases and the test data so that it can be reused later.

# Save test cases, test configuration, test data  
h.save(save_dir="path/to/saved_test_folder")

Saving Model Responses

After executing the .run() method, you can save model responses for re-evaluation and analysis.

h.save(
    save_dir="model_response", 
    include_generated_results=True
)
Last updated