Unable to access the row count of radgridview in sentence verification builder in telerik automated testing

8 posts, 0 answers
  1. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 24 Aug 2011 Link to this post

    Hi Cody,

    One more issue...

    I have scenario like below.....

    after login in to my application, i will search on some criteria...and will return data.

    iam havig requirement like i should compare number of rows displayed on grid with number of rows count from database query execution.

    iam succesfully able to connect db and getting number of rows information but while comparing with radgridview rows...am not able to set count verification for the radgridview in sentence verification builder.

    after enabling hover over highlighting, i placed curser on one of the row on grid and selecting the uppermost option ie., radgridview...and selcted build verification...opended sentence verification builder popup containing count verification, gridview state, property , location & visibility option verification.

    upon selecting count verification, am seeing row count option first drop down and then equal option second drop down.

    upon checking last drop down..... it is showing "value?" ... but it should display numbers of rows by default....
    here even  i set a value of number of rows manually....

    upon executing this test case, this step is failing and upon chekcing log saying the message that

    Expected 46, Actual 0, compare failed......

    Please help me here....

    where should make a change,,,,,tomorrow is my demo...running with poresuure....

    Thanks.,
    Hari
  2. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 24 Aug 2011 Link to this post

    please find the attachment for more details...
  3. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 24 Aug 2011 Link to this post

    Hello Wish,

    Please upgrade to our latest internal build 2011.1.817, where this issue is already fixed(see screenshot). You can download it from your Telerik account here.

    Regards,
    Plamen
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  4. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 24 Aug 2011 Link to this post

    Plamen...

    GM...

    Some progress but its not fixed 100% i think so...

    it is showing count of records which are visible on the grid....not total number of records....

    i sharing you screen shot....

    my search results 46 rows...but 27/28 records fitted to display...remaining count is missing...
  5. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 25 Aug 2011 Link to this post

    Hi Plamen,

    Previously before you suggested to install build ie, 8.1.7, i used 7.1.2/7.2.1

    With 7.1.2/7.2.1, i used data driven approach using xls file successfuly....

    With the latest 8,1,7, the data driven approach using xls is failing.

    My Scenario:

    Iam recording my application, which is hosted on http://machine1(assumin it),and performing some action on it.,....the same application is hosted on two different machines assume http://machine2 and http://machine3.

    to perform smoke test on these application when new build is releasing, i used a xls based data source with one column "Url" and these urls information in the column values...

    i binded this xls file to login test script.

    for the navigation step, i binded it to with Navigation url to column value...whic you metioned  like in documentation...

    Upon executing these, browser is opening but no action  on it,,,,

    I just want to know..... is it any issue with latest build....

    it worked smoothly with old install......i dont knw why it failed here.....can you pls suggest me here...

    Thanks..
    hari 



  6. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 29 Aug 2011 Link to this post

    Hi Wish,

    I saw that the DataBinding issue is duplicated with ticket 458057, so please let's continue this conversation there.

    As for the row count verification, currently we don't have solution to this problem. GridView does not count all rows in the grid. This is a limitation of the VisualTree contained in the Silverlight engine. It puts in the VisualTree only what it needs to render the page on the screen.

    For example, let's say you have a grid that holds 100 rows of data but can only display 20 at a time. Silverlight typically will only put 22 rows of UI elements in the VisualTree(20 visible plus one above and one below). The only way to get all 100 rows is to scroll through all the rows visually taking snapshots of the data along the way.

    I'm sorry for the inconvenience but there is no better solution at this time. 

    Regards,
    Plamen
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  7. Santhosh
    Santhosh avatar
    2 posts
    Member since:
    Nov 2011

    Posted 14 Feb 2012 Link to this post

    Hi,

      The below issue is resolved in the release 1117?
      
      Now when i check with this release 1117 showing the visible rows incorrectly. instead of 4 it is showing as 14.

    Thanks,
  8. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 14 Feb 2012 Link to this post

    Hello Santhosh,

    Yes, the problem still exists and unfortunately there is no easy solution to this. The only way to get the correct rows count of the grid is by using a coded solution. You'll find some samples in our RadGridView Automation section. 
     
    If your app is publicly accessible, I'll be glad to assist you in writing the code. 

    Kind regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top