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

Can you Reference an Element from the code to the Test

2 Answers 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 05 Jun 2014, 02:06 PM
 I know that you can "Reference an Element in Code",but can I do the reverse?
I would really like to be able to use an element that i captured during
run time, and use it in the "front end" test. Is there anyway to do
this? It would really help us in our testing.

I have attached a Screen shot of the coded step and the Boolean I would like to use in the "front end" / main test.

2 Answers, 1 is accepted

Sort by
0
Justin
Top achievements
Rank 1
answered on 05 Jun 2014, 02:31 PM
Also I would like to use the Boolean in a "front end" If statement.
0
Boyan Boev
Telerik team
answered on 10 Jun 2014, 11:13 AM
Hi Justin,

You can declare the Boolean outside of the coded step as a public static bool and then you can set it in the coded step.

In this case you can use it in the other test within the project. 

Another option is to create utility class.This class will contain the intended functions or variables.

Hope this helps.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Justin
Top achievements
Rank 1
Answers by
Justin
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or