ArtOfTest.Runner.exe 'settings' command line option

6 posts, 0 answers
  1. Mark
    Mark avatar
    5 posts
    Member since:
    May 2012

    Posted 28 Feb 2013 Link to this post

    When I get the command line options for ArtOfTest.Runner.exe, I see there is a 'settings' option...

            settings=[file path]          The full path to a XML file containg the
                                          custom params and/or settings for the run.

    But I can't find any other information about this option, or the format of the XML file.  

    Is there more information about this option available?  I tried passing in a .testsettings file but it didn't have any effect on the test run.

    (btw, containing is misspelled in the option's description)

    Thanks,
    Mark Ott
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 05 Mar 2013 Link to this post

    Hello Mark,

    I agree it's not clear in our documentation (something we do need to work on) but it is using this format:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/intermediate-topics/settings-and-configuration/using-application-config-file.aspx

    All the best,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. VVP
    VVP avatar
    61 posts
    Member since:
    Mar 2015

    Posted 01 Sep 2015 in reply to Cody Link to this post

    Hi Cody,

    I followed the steps as mentioned in the link you shared. But i am getting onemessage

    "Load project: The settings file is missing in the 'C:\SmokeTest\bin' Please set the root path.

    As you mentioned, is there any documentation on how to use commandline?

    I used like this

    ArtofTest.Runner test=C:\SmokeTest\bin\SmokeTestTrimmed.tstest settings=C:\SmokeTest\bin\Autotest.dll.config

    1) Am i doing something wrong here?

    2) Do i need to add Manager mgr = new Manager(true); somewhere in code?

    3) Do i need to use settings.aiis also along with this xml?

    Kindly let me know.

    Thanks,

    VVP

  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 02 Sep 2015 Link to this post

    Hello Vishnu,

    First yes ArtOfTest.Runner does also need settings.aiis file. You should be running a test contained in a test project, which includes a settings.aiis file. You can tell ArtOfTest.Runner where to find this file using the "root=" command line parameter. For example root="c:\My Documents\Test Studio Projects\Project A".

    You do not need to add "Manager mgr = new Manager(true);"

    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  5. VVP
    VVP avatar
    61 posts
    Member since:
    Mar 2015

    Posted 09 Sep 2015 in reply to Cody Link to this post

    Thanks Cody. It worked.

     

    Thanks,

    VVP

  6. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 09 Sep 2015 Link to this post

    Hi Vishnu,

    Excellent! Thank you for the update.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top