Manickam Posted February 21, 2007 Share Posted February 21, 2007 Hi i'm trying to write the scripts to automated testing for my applications. This is my script #include <IE.au3> $oIE = _IECreate ("http://192.168.10.120:1000/testsite",1,1,0) send("!{SPACE}") Send("x") _IELoadWait ($oIE) Send("sysadmin{TAB}powerlock{TAB}{ENTER}") WinWait("Windows Internet Explorer provided by Yahoo!","Purchase",5) If Not WinActive("Windows Internet Explorer provided by Yahoo!","Purchase") Then WinActivate("Windows Internet Explorer provided by Yahoo!","Purchase") WinWaitActive("Windows Internet Explorer provided by Yahoo!","Purchase",5) MouseMove(47,676) MouseDown("left") MouseUp("left") MouseMove(333,531) MouseDown("left") MouseUp("left") WinWait("My JSP 'VendorRegistration.jsp' starting page - Windows Internet Explorer provided by Yahoo!","Online",1) If Not WinActive("My JSP 'VendorRegistration.jsp' starting page - Windows Internet Explorer provided by Yahoo!","Online") Then WinActivate("My JSP 'VendorRegistration.jsp' starting page - Windows Internet Explorer provided by Yahoo!","Online") WinWaitActive("My JSP 'VendorRegistration.jsp' starting page - Windows Internet Explorer provided by Yahoo!","Online",1) MouseMove(589,273) MouseDown("left") MouseUp("left") MouseMove(554,293) MouseDown("left") MouseUp("left") MouseMove(287,331) MouseDown("left") MouseUp("left") WinWait("A Servlet - Windows Internet Explorer provided by Yahoo!","Links") If Not WinActive("A Servlet - Windows Internet Explorer provided by Yahoo!","Links") Then WinActivate("A Servlet - Windows Internet Explorer provided by Yahoo!","Links") WinWaitActive("A Servlet - Windows Internet Explorer provided by Yahoo!","Links") MouseClick("left",910,230,1) But obviously its so funny scripts what i was written here... Could you pls help me out, like feeding data from the Database/excel instead of feeding through the scripts.... and to generate the test results.... I downloaded the diagram shown below, how this could be possible... But i could not able to make it, since i have very basic idea about AutoIT... Thanks in advance Manickam Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now