Forum Discussion

amcnamara's avatar
amcnamara
Contributor
9 years ago

Can I Change Command-Line Argument?

Hi all,

 

Our desktop software has multiple production servers. I have a manger asking me to create a script that logs into each of these scripts each morning to make sure they are all up and running.

 

The issue lies here: we are currently specifying our server under "TestApps>Command-line arguments" as a string (they are specified as a url such as http://development.website.net/server/). I'm wondering if or how I can script in this command line so I adjust this throughout a test that just calls the same method over and over to check each server.

 

Thanks so much. 

10 Replies

    • amcnamara's avatar
      amcnamara
      Contributor

      Morning Tanya!

       

      I have tried this and am getting this JScript runtime error "TestedApps.'testname'.Params.SimpleParams is null or not an object" Is there more setup I need to do before using this statement?

       

      I also tried what's written in the link you shared and got the same runtime error.

      • TanyaYatskovska's avatar
        TanyaYatskovska
        SmartBear Alumni (Retired)

        <AppName> is the name of your tested app. Look at the green rectangles on this images:

         testedapp.png

         

        For example, for the Notepad application, the code will look like this:

        TestedApps.notepad.Params.SimpleParams.CommandLineParamete

        rs