ranorex
ranorex/ranorex@v1
Run a Ranorex test suite.
solution
, solution_file
and project
are mandatory parameters.
The test_suite
and the test_container
are optional parameters.
However the test_container
parameter requires a test_suite
parameter.
The extra_options
parameter is optional and injected as is in the
command line execution.
If the action is used more than once in a job, it is up to the caller to ensure no previous test execution results remains before executing a new test.
It is also up to the caller to attach the relevant reports so that
publishers can do their job too, by using the actions/get-files@v1
action or some other means.
Before launching tests in the execution environment, the action will check three conditions and return a specific error code if one is not properly fulfilled :
- definition of SQUASH_MSBUILD_PATH environment variable (RC 91)
- existence of MSBuild.exe file in the SQUASH_MSBUILD_PATH folder (RC 92)
- existence of executable test file generated with MSBuild.exe (RC 93)
Example
- uses: ranorex/ranorex@v1
with:
solution: my\ranorex\solution
solution_file: solution.sln
project: name
test_suite: name
test_container: name
global_params:
name1: value1
name2: value2
test_container_params:
name1: value1
name2: value2
extra_options: value
Inputs
-
solution
(required)The path to the solution to execute.
-
solution_file
(required)The name of the solution's
.sln
file. -
project
(required)The name of the project to execute.
-
test_suite
(optional)The name of the test suite to execute, without its
.rxtst
extension (/ts:YourTestSuite.rxtst
option). -
test_container
(optional)The name of the test container to execute (
/tc:YourTestContainer
option). -
global_params
(optional)Parameters to be passed as global parameters to the executed project (
/pa:YourGlobalKey=YourGlobalValue
option for each parameter you filled). -
test_container_params
(optional)Parameters to be passed to the executed test container, if a test container has been specified. Will be ignored if no
test_container
param is provided (/tcpa:YourTestContainer:YourContainerKey=YourContainerValue
option for each parameter you filled). -
extra_options
(optional)Extra parameters to be passed to the executed project (free form).
For a list of availables parameters, see the Ranorex documentation.
ranorex/execute@v1
An 'execute' action for use by generators.
execute
actions have a mandatory test
input.
The first three arguments (separated by #
) in the test
input
are mandatory, the last one is optional.
Like the ranorex action, before launching tests in the execution environment, the action will check three conditions and return a specific error code if one is not properly fulfilled :
- definition of SQUASH_MSBUILD_PATH environment variable (RC 91)
- existence of MSBuild.exe file in the SQUASH_MSBUILD_PATH folder (RC 92)
- existence of executable test file generated with MSBuild.exe (RC 93)
Example
- uses: ranorex/execute@v1
with:
test: my/ranorex/solution/solution.sln#project#testSuite#testContainer
Inputs
-
test
(required)The path to the project's
.sln
file, followed by the project name, then the test suite name, then the test container name. All parts must be separated by '#'.
ranorex/params@v1
A 'params' action for use by generators.
params
actions have mandatory data
and format
inputs.
Example
- uses: ranorex/params@v1
with:
data:
global:
key1: value1
key2: value2
test:
key1: value3
key3: value4
format: format
format
must so far be SQUASHTM_FORMAT (tm.squashtest.org/params@v1
).
data
can have two keys:
global
for defining global parameterstest
for defining test parameters
Inputs
-
data
(required)the data to use for the automated test
-
format
(required)the format to use for the automated test data