Can't change comparison type since latest upgrade

9 posts, 1 answers
  1. Jennifer
    Jennifer avatar
    11 posts
    Member since:
    Sep 2016

    Posted 15 Sep Link to this post

    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.
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 19 Sep Link to this post

    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!
  3. Jennifer
    Jennifer avatar
    11 posts
    Member since:
    Sep 2016

    Posted 19 Sep in reply to Boyan Boev Link to this post

    It's in a silverlight web application. Test Studio is recognizing the control as Telerik.WebAii.Controls.Xaml.RadGridView
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 22 Sep Link to this post

    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!
  5. Jennifer
    Jennifer avatar
    11 posts
    Member since:
    Sep 2016

    Posted 22 Sep in reply to Boyan Boev Link to this post

    That's strange. It was 2016.1 that we had originally. 

    radgridview(CustomerGridViewRadgridview): row count 'GreaterThan' '0'.
    Value 0
    Comparison: GreaterThan
    PropertyName: Rows.Count
  6. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 23 Sep Link to this post

    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!
  7. Jennifer
    Jennifer avatar
    11 posts
    Member since:
    Sep 2016

    Posted 23 Sep in reply to Konstantin Petkov Link to this post

    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. 
  8. Answer
    Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 23 Sep Link to this post

    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!
  9. Jennifer
    Jennifer avatar
    11 posts
    Member since:
    Sep 2016

    Posted 23 Sep in reply to Konstantin Petkov Link to this post

    That's it! I don't remember having to do that but it works. Thank you! 
Back to Top