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

Unable to use Data object in C# code

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Meher
Top achievements
Rank 1
Meher asked on 05 Mar 2014, 03:03 AM
Hello,

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
Meher

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 10 Mar 2014, 08:36 AM
Hi Meher,

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

Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Meher
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or