Am I missing how to just add a new step?

5 posts, 1 answers
  1. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 08 Oct 2010 Link to this post

    If I have 15 steps and I want to insert a coded after step 7 (for example)...how do I do that?

    Also I'm pretty sure I remember changing the Step description text somewhere (in the steps tab), and I know I can change it IN the coded steps, but where do I do it for recorded steps
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 08 Oct 2010 Link to this post

    Hi Steve,

    To insert a coded step, create the code first, then just drag and drop the step to the location desired. We also have Up & Down arrows you can click on to move steps around. These are located right above the "Order" column.

    Best wishes,
    Cody
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 08 Oct 2010 Link to this post

    Yeah that's what I thought...so I can't just right-click and insert a coded step somewhere right?  I have to record a dummy step, then move it, then convert it to code, then delete the recorded code...

    About Right?
  4. Answer
    Cody
    Admin
    Cody avatar
    3354 posts

    Posted 08 Oct 2010 Link to this post

    Hello Steve,

    No need to record any "dummy" step. Since this is Developer edition, just open your code file (.cs or .vb) and add the code for a coded step. As soon as you Save the file to disk, the tool will automatically pick up on the new coded method you just added and add it as a step in your test. Then drag and drop it to the right location. All coded steps must have this sort of framework:

    C#:

    [CodedStep(@"Enter description here")]
    public void NameOfMethodHere()
    {
        // The code follows here
         
    }

    VB.NET:
    <CodedStep("Enter description here")> _
    Public Sub NameOfMethodHere()
     
        ' The code follows here
     
    End Sub

    Greetings,
    Cody
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 08 Oct 2010 Link to this post

    Oh cool!  That works!
Back to Top