SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Guest

    User Intervention

    Is it possible to stop a script at a particular page and let the user either select the relevant inputs or be able to type them in themselves

    I know flys in the face of most automated testing... But thats what the client wants

    regards


    ------------------
    Martin Croft
    Select Red Ltd

  2. #2
    Junior Member
    Join Date
    Aug 2001
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: User Intervention

    You could put in a WaitFor function. We use a function we wrote that uses a sleep function to wait for another operation to finish. We use it to prevent SilkTest from running ahead of our application. It seems like you could use the same thing to wait for the user to perform their operation.

    Put the sleep function in a loop using a small time increment (maybe 0.1 seconds) and keep checking to see if the user-performed operation(s) is completed. Once they have done their input then Silktest can take over again.

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

  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: User Intervention

    Below is a Halt function. It will pause the script until the user hits OK. If they hit Cancel, it will stop the script. You can set the Title and the Message to send to the user.

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

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: User Intervention

    Martin,
    On the page below, there's a function for prompting the user for inputs. Could be modified to ask to cancel or not.

    SilkTest Misc. functions

    I hope this helps.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  5. #5
    Guest

    Re: User Intervention

    Thanks for the answers guys

    Dave the code smaple looks intriuging, but I need to put it into a script...

    What Im trying to do is stop the script running let the user add details to a specific form and the start the script off again.... Ive been using davids code that Halts the script but then focus is taken away from the form and the user cant input the data... Im just trying a few work arounds at the moment...

    Thanks for your help

    martin


    ------------------
    Martin Croft
    Select Red Ltd

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

    Re: User Intervention

    You could put in a sleep time after the user hits OK. This way, the script halts until the user is ready. They hit OK when they see the prompt. A sleep time starts at this point, allowing the user to enter data into the form.

    Or, use Dave Reed's solution above, you have the user enter the desired value into your own form, then take the values they entered and transfer those to the page under test.



    ------------------
    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 12:39 PM.

Copyright BetaSoft Inc.