| || |
win_check_info not working
I'm new to WinRunner and am currently having problems with the following code which occurs directly after launching am Internet Explorer window:
win_check_info (ddt_valtable,"WindowName"),"label",ddt_val(table, "WindowName"),20);
However, if I run the script step-by-step the script runs past this stage and completes, but it just hangs on this line when running in normal 'verify' mode - why is this happening? I've changed the timeout options but still hang.
What I'm trying to do is to make some GENERIC scripts which will be drived by data tables. All I'm doing with this piece of code, is checking that the window label is as expected in the data table.
Thanks for any help people can provide,
Re: win_check_info not working
I do not have any suggestions as to why it fails for you, but if in your place I might re-write that section to try and narrow down where it is failing:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">winName = ddt_val(table,"WindowName"
if(winName == ""
report_msg("ERROR: winName is empty"
report_msg("winName = " & winName);
rc = win_check_info (winName, "label", winName, 20);
tl_step("win_check_info", rc, "Window name: " & winName);</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)