SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Apr 2006
    Location
    USA
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Sorting special charachter *.

    I am working on QTP. I have priority list displaying stars. The highest priority record displays 5 stars.The next displays 4 stars.
    I am working on a webappllication. Depending on the client selected the records may be displayed starting with 4 *'s.
    Can you please let me know how to verify whether the records are in the sorted order.

    Thanks,
    Kalpana.
    Kalpana

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Sorting special charachter *.

    Take the length of the text displayed and ensure that it's either increasing or decreasing

  3. #3
    Junior Member
    Join Date
    Apr 2006
    Location
    USA
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Sorting special charachter *.

    Tarun,
    Thanks for the reply. I am working on descriptive programing. The property of the * is Image. The only unique property is file name star5.gif, star4.gif.......star1.gif.
    Can you please let me know how to sort on unique property file name.
    Kalpana

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Sorting special charachter *.

    You can use GetROProperty on the Image object and then sort the names

    imgSrc=Browser().Page().Image().GetROProperty("src ")

    now you have the image name and you can use sorting algorithm based on that

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:15 PM.

Copyright BetaSoft Inc.