|
Author
|
Topic: spawning another thread or process from winrunner
|
fletch41 Member

Posts: 73 Registered: Oct 2001
|
posted 08-06-2002 06:17 AM
User lee rector (lrector@powerwayinc.com.nospam) posted:
------_=_NextPart_001_01C23D4B.CC957BD8 Content-Type: text/plain; charset="iso-8859-1"
limitations of winrunner dialog windows will probably force me to write an VB exe(form with editboxes, checkboxes, radio buttons, labels and notes text).
Does Winrunner have reserved functions for spawning a synchronous/asynchronous thread(ie. pushing OK on the VB dialog writes data to registry and closes the vb app.--->then returns to the winrunner script). Of course, I will need to hold up the winrunner script until the vb window closes.
thanks, please send me any tips Lee MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE. If the reader of this message is not the recipient or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by E-Mail and return the original message to the sender. Thank you.
------_=_NextPart_001_01C23D4B.CC957BD8 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: 7bit
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
< !-- |**|begin egp html banner|**| -->

|
romanz Guru
   
Posts: 358 Registered: Jun 2002
|
posted 08-06-2002 06:26 AM
User Roman Zilber (romanz@enigma.com.nospam) posted:
------_=_NextPart_001_01C23D4D.00DB1890 Content-Type: text/plain; charset="iso-8859-1"
I did it with html dialogs, it's easer, flexible for changes, nice, of course html have some limitation for ex, you can't select folder in file dialog. With vbscript I saved values of the dialog in log file in format: var=value For synchronizing I use loop with checking title of the window (click on OK change the title). If you are ineresting I can send an example WR code + dialog Roman.

|
bpolitzer Guru
   
Posts: 352 Registered: Jun 2002
|
posted 08-06-2002 07:52 AM
Can your VB utility be launched with command line arguments? In other words, forget about the OK button, just have the utility do its job after launching, and pass in any needed arguments via command line. Then invoke the utility with the dos_system command. WinRunner execution will be suspended until the process spawned by dos_system is complete.------------------

|
cranem451 Guru
   
Posts: 395 Registered: Mar 2002
|
posted 08-06-2002 05:40 PM
WinBatch might be a better solution.Search previous Topics for more info. Link to sample code: 1707006.zip This will open a dialog with radio buttons , Checkbox, and command buttons. It positions the WinRunner Print Log in One of Four positions on the screen and resizes it. You can get a 30 day trial version at the WinBatch Web Site. Search previous Topics for more info. ------------------ cranem451 - cranem@addendum.com [This message has been edited by cranem451 (edited 08-08-2002).]

|