Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Can we send choice parms from Jenkins into SOAtest Rest Request
Best Answer
-
You have a few options:
- Define appropriate environment variables and then configure the payload to reference them. Use the -environmentConfig CLI option to pass the specific variable values that you want to use from the Jenkins job. See https://docs.parasoft.com/display/SOA20201/CLI+Options
- Define a CSV data source with a single row of data and configure the payload to use values from it. Configure the Jenkins job to rewrite the CSV file used by the data source before running the test.
- Define appropriate test variables in the .tst file, and configure the payload to use them. Create an Extension Tool at the start of the test scenario that reads the appropriate values from some external file and sets the values of the test variables.
All three of these options require the Jenkins job to write the values into a file that then gets processed by SOAtest - an XML file for -enviornmentConfig, a CSV file for the data source, or whatever format you would like for the test variables.
6
Answers
-
Thanks will try to use the env vars
1