Calling external test code

2 posts, 0 answers
  1. Walt
    Walt avatar
    1 posts
    Member since:
    Feb 2013

    Posted 13 Feb 2013 Link to this post


    I would like to be able to create a test project that contains a number of common tests, such as logging into our server, logging out, etc.  I'm currently calling external test code like this:
    ArtOfTest.WebAii.Design.Execution.RunHelper.Test(@"c:\TestProjectDir\InvalidDataInput.tstest", @"c:\TestProjectDir\bin\debug\TestProject.dll")

    So far, this works.  However, I have a few questions I need answered before I can make the most out of this functionality.

    1. Calling external test code launches the test in a new browser window.  Is there a way to make external test code act within the same browser as the test that called it?

    2. Can arguments be passed to an external test?


  2. Nikolai
    Nikolai avatar
    112 posts

    Posted 18 Feb 2013 Link to this post

    Hello Walter,

    On your first question I've sent answer in your other ticket. 

    About passing the passing of arguments to the tests you can do two things:
    1. If you run the tests in the same contexts you can set/get arguments from withing your code:  

    2. Store your arguments in file and manually read/write values. This opting will work if you choose different execution contexts via the RunHelper.Test().

    Hope this helps.

    All the best,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top