Forum Discussion

sashakirichek's avatar
sashakirichek
New Contributor
11 years ago

Passing additional custom parameters to test item group start


I need to pass to actual script additional parameter except ordinary ones.

Sample.js "<Path to your project>\<Projectname>.pjs"   /p:<ProjectName> /testitemgroup:<groupname - foldername> /testResultLocation:<remotelocation>



It more or less the same as question there:



  • Hi Aleksander,


     


    The parameters are <SPACE> seperated, like most of the command line supported tools. 


    You can continue passing them after your regular parameter as passed, as many you want.



    Ex:


    ----------------------------------


    1. Sample.js "<Path to your project>\<Projectname>.pjs"   /p:<ProjectName> /testitemgroup:<groupname - foldername> /testResultLocation:<remotelocation> "SANITY" "abcd.html" "Yes"


     


    2. Sample.js "<Path to your project>\<Projectname>.pjs"   /p:<ProjectName> /testitemgroup:<groupname - foldername> /testResultLocation:<remotelocation> "TestsToExecute:SANITY" "ResultFileName:abcd.html" "EmailResultsToTeam:Yes" "EmailAddress:abcd@abcd.com,bcde@xyz.com"


     


    Inside test complete as usual we get them using methods - ParamStr() & ParamCount().


     


    Hope this helps.