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

Calling Another Script

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sunil
Top achievements
Rank 1
Sunil asked on 14 Feb 2012, 12:03 PM
Hi,

I tried calling another script within a script, but unable to perform these action and getting an error message that Directive or Assembly reference missing. So please can u provide me a simple example.


Regards,

Sunil Sharma

2 Answers, 1 is accepted

Sort by
0
N1t1nA
Top achievements
Rank 1
answered on 14 Feb 2012, 12:24 PM
Hi Sunil

You can use Test as Step approach, Here is the Documentation which helps
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/add-custom-step/test-as-step.aspx

or you can use 'this' keyword to call the method

http://msdn.microsoft.com/en-us/library/dk1507sz%28v=vs.100%29.aspx

Thanks
Nitin

0
Stoich
Telerik team
answered on 14 Feb 2012, 05:35 PM
Hi Sunil,
I can Nintin has already pointed out our articles that describes the TestAsStep feature and how to use it. Is this the feature you're trying to use?

Are you using code to call another script? Please paste the code that you're using (which is probably also the code that is throwing this error).

Greetings,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Sunil
Top achievements
Rank 1
Answers by
N1t1nA
Top achievements
Rank 1
Stoich
Telerik team
Share this question
or