Jmeter by CSV save the test data in a simple record, test cases, and test results will be exported to Excel,

 1, CSV save the test data and upload it to CSV Data Set Config, set the relevant property

2, CSV save the test case, and upload it to CSV Data Set Config, set the relevant property

 

3, is provided a http request, the request parameter setting value for the parameter acquired form: $ {}

 

4, in the post request, plus regular extractor that extracts a response result, put fresult

5, jmeter in the introduction of external jar package, the functionality of the jar package includes templates to create test results, test results are written

6, add a beanshell sampler, users create use case Excel template, call the jar in the bag to create Excel files beanshell years, filepath and test templates stored in the jmeter

7, and then add a beanshell, the test results are written back to Excel,

 

 

Attached: jar package was created Excel template and write the results from the method, the need to import project in jxl.jar package Note: Export jar package way: Export to run jar package, export jar package can be put in the project

 

 

 

Guess you like

Origin www.cnblogs.com/cainiaotest/p/11271894.html