Creating a command-line config file
Starting from V10.0.2, you can create command line config file from the product, which you can use while running tests from the command-line interface and Maven.
Before you begin
You must have performed the following tasks:
- Created test assets in a workspace.
- Installed Maven if you are running tests from the Maven build.
For information about creating tests and installing Maven, see related links.
About this task
Previously, you created the config file manually by adding parameters to it for running the tests by using the config file from the command line. Now, you can create a command-line config file from the product by right-clicking the test asset. The required parameters are automatically assigned, and you can specify any optional parameters, while creating the config file. You can use this config file to run the tests from the command-line interface and Maven plug-in that is provided with the product as part of Maven build.
Procedure
- In the Test Navigator, browse and select the test.
- Right-click the test , and then click Create command line config file.
- In the Create New Config File window, enter a name for the new configuration file and then click Next.
-
Perform the following sub-steps in the Command Line Arguments
window:
- Click Finish.
Results
What to do next
You must complete the following steps:
- Close the product.
- Run a test by using the config file either from the command-line interface or from the Maven build.