This is a migrated thread and some comments may be shown as answers.

Calling external test code

1 Answer 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Walt
Top achievements
Rank 1
Walt asked on 13 Feb 2013, 03:10 PM
Hello,

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?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Nikolai
Telerik team
answered on 18 Feb 2013, 09:07 AM
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:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/extracted-variables-in-code.aspx  

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,
Nikolai
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Walt
Top achievements
Rank 1
Answers by
Nikolai
Telerik team
Share this question
or