Forum Discussion

Simon_InT's avatar
Simon_InT
Contributor
7 years ago
Solved

How to add a test item parameter to a scripted test

I'm wanting to perform some multi-browser testing within my test scripts. As per https://support.smartbear.com/testcomplete/docs/app-testing/web/general/cross-browser/parameterizing.html, I want to a...
  • tristaanogre's avatar
    7 years ago

    This is JavaScript...

    This is a "scripted test" without a parameter

     

    function Test(){
    
       DoSomething();
    }

    This is a "scripted test" with a parameter

     

    function Test(parameter1){
    
       DoSomething();
    }

    So... before you can send a parameter to your TestItem, you need to add the parameter to your script code.  Once you do that, then you SHOULD be able to access the parameter settings of your Test Item.