Users can set up dynamic variable as a placeholder for user-defined execution time values for TestScript.variable. Technically dynamic variable will replace value in defaultValue at the beginning of test execution.
There are two ways to set up dynamic variable:
Summary
Dynamic variable
New behavior
Users can set up dynamic variable as a placeholder for user-defined execution time values for TestScript.variable. Technically dynamic variable will replace value in defaultValue at the beginning of test execution. There are two ways to set up dynamic variable:
Config.yml
variable : [ARRAY]
Use format
Command line argument
bundle exec testscript_engine execution --variable [ARRAY]
Use format
name1=value1 name2=value2
Use quotations if there are spaces.
Testing guidance
Sample TestScript
testscript_dynamic_variable
is included. Use the examples below from command line argument.bundle exec testscript_engine execute --testscript_path "/spec/examples/testscript_unittest" --variable PatientResourceId1=var1changed PatientResourceId2=var2changed --testscript_name testscript_dynamic_variable
Expected result