Unable to use Data object in C# code

2 posts, 0 answers
  1. Meher
    Meher avatar
    6 posts
    Member since:
    Mar 2014

    Posted 04 Mar 2014 Link to this post


    I am new to test studio but have some experience in C#  and Visual studio. I created a Webtest.tstest and recorded few steps in it. Then I converted it to the C# code using MSTest framework. I started modularizing the code into several small functions. I am facing few problems here

    1. When I add a new step to Webtest.tstest  it is not being directly reflected in the above C# code. Is there any way I can keep them in sync.
    2. I have my data defined in excel and ma accessing it in the code using the below code.
    Actions.SetText(Pages.x2003FREIGHTERDROPDECKFor.TxtEnquiryFormNameText, Data["Name"].ToString())

    But when I do the same in the C# code that is converted using MSTest Framework, I am unable to access the Data object. How do I use the Data here.

    Kindly help.

    Thanks in advance

  2. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 10 Mar 2014 Link to this post

    Hi Meher,

    This is a duplicate of ticket number 794652. Let's continue the discussion there.

    Boyan Boev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top