I am trying to create a loop in Telerik Test Studio that will extract text from a textbox using cell##gridviewcell. So that I can iterate through all 18 grid rows * 25 pages and save them all at once. I am going to use the extracted data to verify the same rows after deleting and reconstructing them. Below is a coded effort that I tried to achieve itteration in C#.
string[] conceptName = new String[522];
for(int i=0; i<29; i++)
{
for(int j=0; j<18; j++)
{int k = i+j;string extractCell = "Pages.NameOFWEBSITE.ConceptBank0.SilverlightApp.Cell"+j+"1Gridviewcell.Text";SetExtractedValue("Row",extractCell);Console.WriteLine("{0}", conceptName[k]);
}
}
Ideally, if I could find the code behind the step in telerik: gridviewcell Extract text into DataBindVariable $(Cell01Gridviewcell) It would give me the text as a string that I could then save to later use in verification.
I have done quite a bit of searching, the two leads I have found include:
these may hold the answer but i was unable to figure it out.http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/extracted-variables-in-codehttps://telerikhelper.net/category/test-studio/
telerik version 2014.4.1411.0
string[] conceptName = new String[522];
for(int i=0; i<29; i++)
{
for(int j=0; j<18; j++)
{int k = i+j;string extractCell = "Pages.NameOFWEBSITE.ConceptBank0.SilverlightApp.Cell"+j+"1Gridviewcell.Text";SetExtractedValue("Row",extractCell);Console.WriteLine("{0}", conceptName[k]);
}
}
Ideally, if I could find the code behind the step in telerik: gridviewcell Extract text into DataBindVariable $(Cell01Gridviewcell) It would give me the text as a string that I could then save to later use in verification.
I have done quite a bit of searching, the two leads I have found include:
these may hold the answer but i was unable to figure it out.http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/extracted-variables-in-codehttps://telerikhelper.net/category/test-studio/
telerik version 2014.4.1411.0