Not able to do any work while executing the script - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: Not able to do any work while executing the script (/Thread-Not-able-to-do-any-work-while-executing-the-script) |
Not able to do any work while executing the script - venkatbatchu - 10-29-2009 Hi All, I have a 5 text fields on my application and i need to enter some values in to these text fields because of multiple test data need to pass in to these fields , i have used some datatables and exported in to these fields and finally i dont have any issues while writing the script even it is giving the expected results but while executing the script at some point of timei need to send the mail to some other guys using outlook that means two actions has been occuring one is executing the script i.e passing the data from data table to 5 text fields and second is drafting a mail My observation: lets take which is importing a value(Field_A) in text field 1 at the same time i might be typing a some words in out look as "Staus report" Instead of sending "Field_A" to textfield1 which is passing "FSeu_A" to the text field1 Finally just to conclude this which is taking the value which i entered in outlook Could you please how to avoid this kind of stuff Thanks in advacne, Venkat RE: Not able to do any work while executing the script - Saket - 10-29-2009 Hi Venkat, I would like to suggest you to do not use any other application(like your outlook to draft a mail) while your QTP is executing a script. This always create a problem. whenever QTP will try to input some data on your application, the application will be activated, and whatver is sent through your keyboard will be enetered into your application not in outlook. better use a dedicated machine (Test Machine) to run your scripts. or else if you really need to it on your machine only then it will be better to pause your script a while. RE: Not able to do any work while executing the script - venkatbatchu - 10-29-2009 Thanks saket, RE: Not able to do any work while executing the script - jsknight1969 - 11-02-2009 If you have a good enough machine, you can install Virtual PC (it's free on Microsoft's web site) and create a virtual Windows (any flavor) test machine. This is what I do. It works well, but like I said, you need a pretty good machine to do it. I am running a P4 Dual Core with 4 GB Memory and it still can get a very slow at times. Processor utilization is high during testing but at least I can use my local desktop for email and whatnot while testing and not distract from QTP. This can also be useful for multi platform and user testing. I have a XP, 2000, Vista, and Win 7 virtual so i can test my applications on all active Windows versions. I can also run several virtuals 2 XP and 2 Vista to test for mult-user functionality. Fortuanlty I don't have to do the muti-user test often. It renders my desktop unsuable during testing. RE: Not able to do any work while executing the script - basanth27 - 11-03-2009 Venkat - I have always felt the best practice while beginning to execute the script is for the script to close all of the open items on the desktop and then open a fresh browser or application and then begin. Morever, why arent you programatically handling sending of email through outlook ? This will help you not open outlook at all. |