SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to data drive a wizard based app?

    Hi,

    This is my first experience with SilkTest abd I want some advise on data driving.

    I am automating a wizard based web application. The screens that are displayed sometimes branch off to different paths (flow of screens) depending on the input data I give.

    What is the best way to design my scripts as far as data driving is concerned? I have the following ideas -

    1) Use the Test Plan to pass all my data to the wizards and create separate test flows (scenarios) in the plan to test each path.
    Downside - input data hardcoding in test plan.

    2) Use one data file to hold the data for all the scenarios and based on the data in the data file call the appropriate test cases.
    Downside - I dont know how to conditionally call test cases based on the input data from the test plan, can this be done?

    Please, if there is some other better method then let me know.



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

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    Waltham, MA
    Posts
    107
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to data drive a wizard based app?

    Your second option is the more elegant method.

    One way to accomplish it, might be to make use of switch or select statements in a testcase, that direct the script based on a piece of data that is read from the data file.

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

  3. #3
    Member
    Join Date
    Apr 2001
    Location
    Montreal, CA
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to data drive a wizard based app?

    Hi,
    I don't know how you can call testcases based on conditions, because a TestCase cannot call another Testcase in SilkTest. Following are some ideas that may give a clue to you.
    1. Write a different set of testcase set of parameters with which you can call different scenario's.
    e.g.,TestCase1To10(DataSetRecord dsSomeDataRecord)
    e.g.,TestCase11To20(DataSetRecord dsSomeDataRecord)
    2. Make testcases as data driven functions which you can easily call other functions based on conditions. This is not advised as you will not have any default based or recovery system and need to code everything explicitly.
    3. Calling testcases from TestPlan files based on conditions.

    Hope this helps. Good luck.


    ------------------
    ___________________
    Murali K Parepalli
    Intuit
    _ _ ___________ _ _
    Murali K Parepalli

  4. #4
    Senior Member
    Join Date
    Nov 2001
    Posts
    375
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to data drive a wizard based app?

    HI Asif,

    Heres what i think:

    1) Start using option sets to store all your data. It does save a lot of headache.

    2) You can make seperate test cases for each flow - but this will be available only if u design ur functions well.

    Cheers!
    Aatish Arora



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

 

 

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

Copyright BetaSoft Inc.