Knowledge Base Article

Home Page > Knowledge Base > Rapise

Article Passing Parameters to a Rapise script through the command line

by Adam S on Friday, November 2, 2012

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.

 

Attachments
Article Info
Last Updated: 11/2/2012
Article ID: KB26
# Views: 2836
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.