Playing back Windows tests from the command-line
You can play back a Windows test without using the desktop client by using the command-line interface. You can either play back the Windows test on the local computer or on a remote computer.
Running the command
cmdline -workspace workspace_full_path -project proj_rel_path -suite suite_rel_path
Creating a variable file
The -varfile parameter specifies the complete path to the XML file in the command. The XML file contains the name-value pairs of the variables.
You must include the -varfile parameter in the following command when you run from the command-line:
cmdline -workspace workspace_full_path -project proj_rel_path -suite suite_rel_path -varfile variable_file_full_path
Variable file for the local computer on which you want to play back Windows test
<?xml version="1.0" encoding="UTF-8"?>
<variable_init name="appium.server.port" value=<"port number"/>
</inits> </inits>
Name of the Variable | Value |
---|---|
appium.server.port | Specify the port number of the Appium server that is installed on your local machine. |
<?xml version="1.0" encoding="UTF-8"?>
<variable_init name="appium.server.port" value="4723"/>
</inits>
Variable file for the remote computer on which you want to play back Windows test
<?xml version="1.0" encoding="UTF-8"?>
<inits xmlns=<"Windows application path">
<variable_init name="appium.server.host” value=<"host number"/>
<variable_init name="appium.server.port" value=<"port number"/>
</inits>
Name of the Variable | Value |
---|---|
appium.server.host | Specify the IP address of the remote computer on which the Appium server and the Windows applications are installed. |
appium.server.port | Specify the port number of the Appium Server that is installed on the remote machine. |
<?xml version="1.0" encoding="UTF-8"?>
<inits xmlns="http://www.ibm.com/rational/test/lt/varinit">
<variable_init name="appium.server.host" value="10.115.160.148"/>
<variable_init name="appium.server.port" value="4723"/>
</inits>