Knowledge Base Article

> Knowledge Base > Rapise

Created By  inflectra.adam Monday, September 18, 2017

This article describes the syntax for passing parameters from the Windows 32-bit command-line to a Rapise script. Note that you need to make sure that you're using the 32-bit command line on a 64-bit machine. I.e. follow the instructions in this KB article - https://www.inflectra.com/Support/KnowledgeBase/KB17.aspx

Consider this sample Rapise script (Sample Command Line Test.sstest):

function Test()
{
 Tester.Message(g_variable1);
 Tester.Message(g_variable2);
}

You should use the following command-line syntax to run the test:

cscript "c:\Program Files (x86)\Inflectra\Rapise\Engine\SeSExecutor.js" "Sample Command Line Test.sstest" "-eval:g_testSetParams={g_variable1:'hello',g_variable2:'goodbye'};"

(which passes the values 'hello' and 'goodbye').

The results will be saved in the "last.trp" report file.

 

Article Info
  • Last Updated: 9/18/2017
  • Article ID: KB26
  • Views: 3429