SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Feb 2001
    Location
    New York, NY
    Posts
    41
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using silktest for a non-gui application

    Yes,
    Silk script can parse the XML fairly easy and it has a nice collection of build in functions to work with any DB that you can connect with ODBC.
    For DB functions, check the Silk help. All of them start with DB_ characters


    ------------------
    -Lev Aks
    lev_aks@in-nyc.com

  2. #2
    Member
    Join Date
    May 2001
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using silktest for a non-gui application

    Search this forum to find out about DB. Use DB_tester as Search string.

    ------------------

  3. #3
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using silktest for a non-gui application

    Sounds like just using Perl or Java as your testing tool would be more productive.

    I have not had much luck at getting SilkTest to parse XML documents. If you search the forums here, I have version 1.0 of my XMLParserClass for 4Test posted. It has some bugs however.


    ------------------
    David Genrich
    david@e2Open.com
    david_kim@usa.net

  4. #4
    Junior Member
    Join Date
    Nov 2001
    Location
    denver, CO, USA
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using silktest for a non-gui application

    I'm looking to use a test tool to test a server side java application. I need a script that can place an XML string on a socket at a given interval. I also need to be able to query a DB. Will silktest work for something like this?
    thanks,
    lisa

    ------------------

  5. #5
    Member
    Join Date
    Jun 2001
    Location
    Bedford, MA, USA
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using silktest for a non-gui application

    We use SilkTest to test a non-GUI, java application with great success. SilkTest offers so much besides GUI manipulation - such as system level calls (SYS_Execute, etc.), file operation functions, date/time calls, List operations, etc. Silk's results file makes it easy to have formatted results output. We also use the recovery system to clean out the database between testcase calls.

    Using SilkTest we've developed a Database class (wrapping Silk's DB functions) to query and insert records in Oracle and MSSQL databases. And we've written an XMLParser to manupulate XML files. There is practically no limit to what you can to with this tool. It's object oriented, so you can use classes to reuse and organize your logic, and it's got a very nice editor and debugger. There's enough work involved in developing a testframe and testcases - I would not want to develop the supporting tools as well - that's what SilkTest provides.

    ------------------

  6. #6
    Member
    Join Date
    Jun 2001
    Location
    Bedford, MA, USA
    Posts
    85
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using silktest for a non-gui application

    Sri,
    I've never had the pleasure of working with BLOB data. If you plan to use Silk's database calls you'll need to provide a variable type that matches the data type of each column you're retrieving. In the case of BLOB, my guess is that you would use an ANYTYPE variable, or LIST OF ANYTYPE. Once retrieved, if you then want to convert the binary data into something meaningful, that's a harder problem. SilkTest has no native functions for that.
    - Jim

    ------------------

  7. #7
    Member
    Join Date
    Jul 2000
    Location
    sanjose,ca,usa
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using silktest for a non-gui application

    Hi Jim Griffiths
    do you have any code for extracting data from database for field "Content" and the datatype is BLOB.
    Thanks
    sri


    ------------------

  8. #8
    Senior Member
    Join Date
    Jun 1999
    Location
    Fremont, CA, USA
    Posts
    355
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using silktest for a non-gui application

    SilkTest uses ODBC for accessing the database (as most tools do). However, I don't think the ODBC drivers can support BLOBs. Even if they can, SilkTest will not have a way to deal with them.

    If you really need to access a BLOB, you might need to write the code in some other language and then get it into SilkTest.


    ------------------
    David Genrich
    david@e2Open.com
    david_kim@usa.net

 

 

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 02:22 PM.

Copyright BetaSoft Inc.