SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Dec 1999
    Location
    CA
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DB TESTER IN SILK

    Can anyone give me a sample example of how to use DB TESTER IN SILKTEST 5.x version.
    i.e how to datadrive a testcase taking data from the database.

    Thank You
    Harry


  2. #2
    Junior Member
    Join Date
    Sep 1999
    Location
    Glen Allen, VA
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DB TESTER IN SILK

    I have used the following code (TestPlan / Script).

    In my testplan:

    $TestData = "Insert into Table01 values ('02', 'Test Data')

    10.4: Insert a row in the table
    testtype: Data Setup
    testcase: ExecuteSQLCommand
    testdata: $TestData


    In my script file:

    string sDBConnectString = "PWD=PSWD;UID=DevRegion;DSN=DevSystem"

    ...
    ...

    void ExecuteSQLCommand(string sSQLStatement)
    HDATABASE hdbc
    HSQL hstmnt

    hdbc = DB_Connect (sDBConnectString)

    //print(sSQLStatement)

    hstmnt = DB_ExecuteSql (hdbc, sSQLStatement)

    DB_FinishSql(hstmnt)

    DB_Disconnect(hdbc)


    This works for me. Hope this helps

    [This message has been edited by Brian Schweickert (edited 12-20-1999).]
    Brian Schweickert, CSTE & CSQA

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 12:44 AM.

Copyright BetaSoft Inc.