Get the App
SLTechnology News&Howtos  ›  Development  › 

How Jmeter saves test data, test cases and exports test results to Excel through CSV

Shulou Source: shulou.com Published: 2022-06-02 08:24:55 10月03日 Update

This article is about how Jmeter saves test data, test cases, and exports test results to Excel via CSV. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.

1. CSV saves test data and uploads it to CSV Data Set Config to set related attributes.

2. Save test cases in CSV and upload them to CSV Data Set Config to set relevant properties.

3. Set an http request, and set the value of the request parameter to a parameterized form to obtain: ${}

4. Under post request, add regular extractor, extract response result and put it into fresult

5. An external jar package is introduced into jmeter. The function of this jar package includes the template for creating test results and writing test results.

6. Add a beanshell sampler. Users create Excel case templates, call Create Excel file in jar package in beanshell, and save filepath of test template to jmeter.

7. Add another beanshell and write the test results back to Excel.

Attachment: jar package to create Excel template and write the execution results method, you need to import jxl.jar package in the project, note: export jar package way: export can run jar package, export jar package into the project can be

Thank you for reading! About "Jmeter how to save test data, test cases and export test results to Excel through CSV" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!

Tags: Tests results templates data content parameters properties projects more articles good practical functional files articles methods methods regularities users see Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft NVidia Shulou Technology Shulou Tech Info Shulou Information