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

CodedStep attribute

1 Answer 60 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.
Michel
Top achievements
Rank 1
Michel asked on 15 Feb 2011, 07:31 PM
Hi

Is it possible to have one function (in the code behind, inside the .cs file) and have multiples steps that use this function (from the .aii  file) ?

I tried to add the CodedStep attribute 2 times but without success ....

How can do that ?

Thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Cody
Telerik team
answered on 15 Feb 2011, 09:15 PM
Hi Michel,

Each test step that you want to run a bit of code does require a separate/unique function... however since you are in code at that point there's nothing stopping you from calling a common function from both coded steps. Go ahead and have test step 1 and test step 2 both call "My_Repeat_Function(()" or whatever you want to name it.

Best wishes,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Michel
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or