SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
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)
    Total Downloaded
    0

    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)
    Total Downloaded
    0

    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
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:35 AM.

Copyright BetaSoft Inc.