CodedStep attribute

2 posts, 1 answers
  1. Michel
    Michel avatar
    19 posts
    Member since:
    Jan 2011

    Posted 15 Feb 2011 Link to this post


    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
  2. Answer
    Cody avatar
    3360 posts

    Posted 15 Feb 2011 Link to this post

    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,
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Back to Top