[TFUI] Problem with testing (winrunner) a .net windows application

"hetzme" <hetzme-/[email protected]> Wed, 16 Mar 2005 01:40:45 -0000
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>

Hi, 
I am facing a problem while testing with WinRunner on a graphical 
application written in VB.Net on windows XP. I have given the test 
script and the error message below. 


The script was generated by the WinRunner. After recording I tried 
to run the same script. It opens a user authentication window where 
it asks for the userID and the Password. In authentication window 
these fields will appear as "userID" and "Password" respectively, 
but the in the script it recorded as ("WindowsForms10.EDIT.app3" 
and "WindowsForms10.EDIT.app3_1". It then has problem finding these 
fields when I run the script. 


Does anyone know if I am doing anything wrong here. Please help me 
with either with a solution or a work around for this problem. 


WinRunner test script: 
---------------------- 
invoke_application("C:\\VBProj­ect2.exe","","",SW_SHOW); 


# UserAuthentication 
        win_activate ("UserAuthentication"); 
        set_window ("UserAuthentication", 2); 
        obj_mouse_click ("WindowsForms10.EDIT.app3", 58, 3, LEFT); 
        obj_type ("WindowsForms10.EDIT.app3","u­ser<kTab>"); 
        obj_type ("WindowsForms10.EDIT.app3_1",­"class<kTab>"); 
        obj_type ("Login","<kReturn>"); 


# CalculatorForm 
        win_close ("CalculatorForm"); 


Error while the script is being executed: 
------------------------------­------------ 
"WinRunner cannot find the object "WindowsFor....EDIT.app3". Click 
the Hand button and then click the object "WindowsFor....EDIT.app3". 


Note: If the object not found is a "Virtual Object", then you need 
to re-learn if (using the "Virtual Object Learn Wizard"). 






To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/