Scripts stops after performing a step when it has been initiated by schedule task. - 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: Scripts stops after performing a step when it has been initiated by schedule task. (/Thread-Scripts-stops-after-performing-a-step-when-it-has-been-initiated-by-schedule-task) |
Scripts stops after performing a step when it has been initiated by schedule task. - Ajit.2k6 - 03-08-2010 If i run manually its running fine. Why is that. Please help!!! I have to click the PLAY button after that. Thanks, Ajit RE: Scripts stops after performing a step when it has been initiated by schedule task. - Saket - 03-08-2010 please provide more details, paste your lines of code. RE:Scripts stops after performing a step when it has been initiated by schedule task. - Ajit.2k6 - 03-08-2010 Following is my .vbs file from where i m initiating the test: Code: Set qtApp = CreateObject("QuickTest.Application") Thanks, Ajit RE: Scripts stops after performing a step when it has been initiated by schedule task. - Saket - 03-08-2010 where do you stuck in the code that you mentioned? RE:Scripts stops after performing a step when it has been initiated by schedule task. - Ajit.2k6 - 03-08-2010 Code: Function fFindLatestBuilt () '*********************************************************** Code: Sub sRemoveSiPassInteg() i am calling these two functions in my script from another .vbs file. There are two conditions: 1. Sometimes it runs and stops at first "bold line 2. Sometimes it runs upto second bold line and hung If i run this script manually (without Schedule task) its ok. I dont know whats wrong with it. Thanks, Ajit RE: Scripts stops after performing a step when it has been initiated by schedule task. - Saket - 03-08-2010 your second bold statements seems to be incomplete isn't it? does it work when you try without schedule task. Code: Window("SiPass integrated Setup").WinRadioButton("Remove").Set in the first bold statement, you are trying to get an item from syslistview. make sure the item exists there with the number you have provided in rcount. RE: Scripts stops after performing a step when it has been initiated by schedule task. - Ajit.2k6 - 03-08-2010 Yes Saket, it run fine when i run it without schedule task. Script itself has no issues but running through Schedule Task giving these problems RE: Scripts stops after performing a step when it has been initiated by schedule task. - Saket - 03-08-2010 not sure what could be the reason but can you give it a try in 'Normal' run mode instead of 'Fast' comment the statement 'qtApp.Options.Run.RunMode = "Fast" in your vbs. let me know how it goes. RE: Scripts stops after performing a step when it has been initiated by schedule task. - Ajit.2k6 - 03-10-2010 Thanks a lot Saket, its working. Changing "Fast" to "Normal" worked. Regards, Ajit RE: Scripts stops after performing a step when it has been initiated by schedule task. - lakshman.us - 02-16-2016 We are using WPF applications, we using mouse move, key strokes and insight object in UFT code. when the machine is locked the ALM scheduler is keep on running and few cases are failed. Is there any way to schedule the script when machine is locked please give your suggestions. |