SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Mar 2008
    Location
    Bangalore,India
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    DSN less connection to CSV

    Hi All,

    Please donate me piece of code for doing DSN less connection to CSV file..
    Thanks & Regards,
    RS_Thakur

  2. #2
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DSN less connection to CSV

    Hey,
    CSV means comma separated values. You can write simple file reading function to do that.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  3. #3
    Senior Member
    Join Date
    Mar 2008
    Location
    Bangalore,India
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DSN less connection to CSV

    Your right palaniselvam ..,We can do that through file functions or using list,but I have different requirement.

    I am using CSV file for passing InputData to testcases and i am using TestcaseName as Index...,so i need to write query to fetch data from inputsheet based on TestcaseName .
    Thanks & Regards,
    RS_Thakur

  4. #4
    Advanced Member
    Join Date
    Oct 1999
    Location
    Chicago, IL
    Posts
    652
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DSN less connection to CSV

    Don't use a CSV then. Use an xls file. Many of our tests are keyword-driven and we store them all in xls files. Makes it easy to edit, and pretty easy to query with regular old SQL.

  5. #5
    Senior Member
    Join Date
    Mar 2008
    Location
    Bangalore,India
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DSN less connection to CSV

    But the problem with excel sheet is,when you have bulk data some time excel will throw a error that data is corrupted.
    Thanks & Regards,
    RS_Thakur

  6. #6
    Junior Member
    Join Date
    Nov 2006
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DSN less connection to CSV

    If you need to pass data from the CSV into the testcase as an argument you should be able to write a Main() function that reads the CSV data and passes it into the testcase.

 

 

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 10.71%
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 04:14 AM.

Copyright BetaSoft Inc.