SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2008
    Location
    Singapore, Singapore
    Posts
    100
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Get the row contents, leave the blank rows.

    I am currently using GetRowCount for getting the number of rows in the data sheet.

    There are unexpected blank rows in the excel input sheet that i am working on.

    Currently i am using a IF statement to check if all the coloumns in the particular row is blank.

    Can you please sugest with a better scripting method so that it can be made a re usable function across all test scripts.

    Please help.

  2. #2
    Advanced Member
    Join Date
    Apr 2005
    Location
    Maryland
    Posts
    555
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get the row contents, leave the blank rows.

    Check the help file in QTP there are functions to check if a column exist look at the DataTable Methods. also examples
    Alfredo R. Rivera
    IT Principal SDLC Automation Subject Matter Expert
    (CCRC/CQ/CQTM/RMT/RFT/RPT/REQPRO)
    (LR/QTP/CQ/SS/WR)
    Certified Mercury Interactive Instructor
    Certified Tester, Foundation Level (CTFL)
    www.fredotech.com
    www.testingframework.com
    www.automationtesting.org
    http://www.linkedin.com/in/fredotech

  3. #3
    Member
    Join Date
    Aug 2008
    Location
    Singapore, Singapore
    Posts
    100
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Get the row contents, leave the blank rows.

    created a functionw with GetParameterCount to check for the row data...

    is there any other shorter way to do this.... because its slowing down the script... is there any one single line which can be conviniently used...

 

 

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 10:29 AM.

Copyright BetaSoft Inc.