SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2003
    Location
    Ottawa, Ontario, Canada
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Best way to use datapools for testing

    Hi,

    I am trying to figure out how make use of datapools and am not sure as to what would be the best way to use them.

    I have just dabbled a bit with a datapool, to see how things work out (created one in the RFT project), accessed it and reported all the records.

    I know that I can create a datapool in the RFT project and read from it (done that, as mentioned above). I find the steps to create the datapool a bit cumbersome. And if the data needs to be updates, it gets a bit more complicated as the interface is not the one of the best.

    I can also import data into a datapool (done that when I took the RFT intro course) but, again, updating the information is not the easiest. I do not mean that it is hugely complicated, but the other people on the team might not fully understand the steps.

    I can read the information from a CSV file (have not done that), but I would then have to deal with each line and have to make sure that the data is accurate.

    Finally, I can try to read from a spreadsheet (I am leaning towards this solution), and I can have a worksheet for each of the automated scripts that requires a bunch of data. But downloading the set of libraries to be able to do this is problematic (have to ask permission, etc). And I have not read Excel spreadsheet using java before (I have never added a package downloaded from the web before either).

    What are your experiences with these methods? Any other suggestions?

    I am trying to reduce the amount of code in a scenario by moving the entire data portion to an external file and just looping through all the records.

    Thank you in advance for your help,

    André

  2. #2
    Member
    Join Date
    Jul 2009
    Location
    Hyderabad,INDIA
    Posts
    382
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Best way to use datapools for testing

    Hi Andre,
    you can use jexcel to read the values from the excel sheet and use datapool edit api to construct the new datapool.
    Thanks and Regards,
    Sathish

  3. #3
    Member
    Join Date
    Mar 2003
    Location
    Ottawa, Ontario, Canada
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Best way to use datapools for testing

    Hi Sathish

    Thansk for the info.

    I was planning on trying the various APIs that are floating around.

    However, I am unclear as to what you mean by "... contruct the new datapool".
    That seems to imply that, at the beginning of the running of my script, the data is read from the spreadsheet and copied somewhere for use by the script. In that case, why not just use the Excel file only?

    Could you please clarify (maybe provide an example)?

    Thanks,

    André

  4. #4
    Member
    Join Date
    Jul 2009
    Location
    Hyderabad,INDIA
    Posts
    382
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Best way to use datapools for testing

    I meant to say that if you want to use only datapools then why don't you try to build a new datapool with the Excel data.Otherwise you can use the Excel sheet it self as the datapool.
    Thanks and Regards,
    Sathish

 

 

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 11.54%
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 08:26 PM.

Copyright BetaSoft Inc.