Forum Discussion
Thanks for the reply.
I am not familiar with TC.
The code is written by someone else and I am revamping it now.
I could find answers for some of your questions. However I will look into the code in details to answer remaining questions.
1. The scenario passes when tested manually.
>>>>Yes. The scenario passes when executed manually.
2. the popped page is not found
>>>>>
3. After reboot, a page for "Password change" pops up.
Did you use the RebootAndContinue method to reboot the system?
>>>>>
4. Have you tried adding delays after rebooting the system? You can use the Delay() method for this purpose.
>>>>Yes.
I tried using delays.
5. Have you tried adding the Refresh() method for the pop-up window's parent object?
>>>>Yes.
6. If you are using name mapping, have you tried using the RefreshMappingInfo method?
>>>>
=================================================
Note : After reboot, the product runs MgntTool.exe and pops up a window. I can see that window on
screen and can also see the exe running in TaskManager.
However after reboot when TestComplete locks the slave, MgntTool.exe and the correspnding popped page are killed somehow. The exe is not listed in the TaskMAnager.
This works fine on 32 bit OS (XP, win7 and Vista) and fails on 64 bit.
====================================================
function DPPasswordChange()
{
Log.Message("Loading DP Password Change Window");
Sys.Refresh();
Delay(5000);
var me=this;
var processHwnd=Sys.WaitProcess("MgntTool",30000);
//It is imp that this exists function should appear before the below IF statement
//Coz Jscript wouldn't even create the function if the contructor returns before the function's declaration
me.Exists=function()
{
return processHwnd.Exists;
}
if(!processHwnd.Exists)
{
return me; =========================>Function returns here for 64bit
}
var count=0;
do{
Delay(1000);
me.w1=new
UIElements.Window(processHwnd,"WndCaption","DISK Protect Password Change",1);
count++
}while(!me.w1.Exists() &&
count<30);
Log.Message("Took less than "+count+" secs to launch");.
<<<<<Codeto edit the text boxes>>
}
Regards,
Shubhangi
Related Content
- 12 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago