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

Can't change comparison type since latest upgrade

8 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jennifer
Top achievements
Rank 1
Jennifer asked on 15 Sep 2016, 06:05 PM
When using the quick steps menu, the only option for verifying the RadGridView row count is choosing Equal to the current row count. When creating this step in the previous version, I was able to modify the step to 'GreaterThan' after adding it. Since upgrading to 2016.2 the Comparison type input is grayed out. I also tried changing the RunsAgainstVersionCompare dropdown but it doesn't seem to do anything.

8 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 19 Sep 2016, 08:27 AM
Hello Jennifer,

Which type of RadGridView do you use? Is it WPF or HTML so we can try reproducing the issue?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Jennifer
Top achievements
Rank 1
answered on 19 Sep 2016, 01:31 PM
It's in a silverlight web application. Test Studio is recognizing the control as Telerik.WebAii.Controls.Xaml.RadGridView
0
Boyan Boev
Telerik team
answered on 22 Sep 2016, 07:15 AM
Hello Jennifer,

I have tried this in version 2016.1 and you cannot modify the Comparision also in that version.

Could you please share with us in which previous version you could modify this?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Jennifer
Top achievements
Rank 1
answered on 22 Sep 2016, 01:50 PM
That's strange. It was 2016.1 that we had originally. 

radgridview(CustomerGridViewRadgridview): row count 'GreaterThan' '0'.
Value 0
Comparison: GreaterThan
PropertyName: Rows.Count
0
Konstantin Petkov
Telerik team
answered on 23 Sep 2016, 12:21 PM
Hello Jennifer,

It really depends on the exact test step type so it's easy to get wrong with such an assumption. Nevertheless you can always switch to code and update it by selecting another compare type. The code will look like this:

[CodedStep(@"radgridview(RadGridView1Radgridview): row count 'GreaterThanOrEqual' '8'.")]
public void SilverlightRadGridView_CodedStep()
{
    // radgridview(RadGridView1Radgridview): row count 'GreaterThanOrEqual' '8'.
    Assert.IsTrue(ArtOfTest.Common.CompareUtils.NumberCompare(Pages.TelerikGridViewFor.SilverlightApp.RadGridView1Radgridview.Rows.Count, 8, ArtOfTest.Common.NumberCompareType.GreaterThanOrEqual), string.Format("radgridview(RadGridView1Radgridview): row count \'Equal\' \'8\'. failed.  Actual valu" +
                            "e \'{0}\'", Pages.TelerikGridViewFor.SilverlightApp.RadGridView1Radgridview.Rows.Count));
     
}


Regards,
Konstantin Petkov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Jennifer
Top achievements
Rank 1
answered on 23 Sep 2016, 01:33 PM
I'm really only using this for verification to ensure that the page returned search results to the grid, which might be a common test. It seems strange that this would be a listed property for the verification step but not allow the comparison operator to change without having to switch to code. Thank you for the response and suggestion. 
0
Accepted
Konstantin Petkov
Telerik team
answered on 23 Sep 2016, 01:43 PM
Hello Jennifer,

I actually think I figured it out - during recording you can choose another compare type from the recorder step builder. Just highlight, select the RadGridView element and then "Locate in DOM". See this screenshot for reference.

Regards,
Konstantin Petkov
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Jennifer
Top achievements
Rank 1
answered on 23 Sep 2016, 02:03 PM
That's it! I don't remember having to do that but it works. Thank you! 
Tags
General Discussions
Asked by
Jennifer
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Jennifer
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or