i have recorded a scrip for some window applicaiton(login
screen) and i have used browser as IE and i have executed
sucessfully that script. and now i want to execute the same
scrip in different browsers and i question is wether it the
same script will execute in different browsers or not
Answer Posted / srikant behera
The browsers are different , so to execute the same script
it needs the GUI map for the perticular explorer. After the
explorer is taken to the MAP editor then only the script
will run.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can you tell some good coding practices while automation?
What kinds of annotations are used in testng?
Hi, Below is the code that i ran on selenium RC using eclipse IDE and java coding.: package source; import org.testng.annotations.BeforeSuite; import org.testng.annotations.Test; import com.thoughtworks.selenium.*; public class parameterized extends SeleneseTestCase { private Selenium browser; public static void main(String []args) { String arr[] = new String[5]; arr[0]= "bert"; arr[1]= "regular"; arr[2]= "copyonly"; arr[3]= "doert"; arr[4]= "inter"; parameterized obj = new parameterized(); obj.setUp(); obj.login_parameterize(arr); } @BeforeSuite public void setUp() { browser = new DefaultSelenium("localhost",4444, "*chrome", "http://goolge.com"); browser.start(); browser.open("http://goolge.com"); browser.waitForPageToLoad("30000"); browser.windowMaximize(); browser.open("/"); browser.click("gb_23"); } @Test public void login_parameterize(String[] arr ) { for(int i=0;i<=5;i++) { for(int j=0;j<=2; j++) { browser.type("//input[@id='Email']", arr[i]); browser.type("//input[@id='Passwd']", arr[i]); browser.click("//input[@id='signIn']"); browser.waitForPageToLoad("30000"); } } } public void EnterValuesIntoTextField_CheckWithGetValue() throws Exception { selenium.open("http://www.essaywriter.co.uk"); assertEquals("", selenium.getValue("id=textInput")); selenium.type("id=textInput", "Text In The Field"); assertEquals("Text In The Field", selenium.getValue("id=textInput")); } } When i ran this test i got an error which says: "Method login_parameterize requires 1 parameters but 0 were supplied in the @Test annotation." Any help is much appreciated. thank Gab
Tell me what is the testng.xml file used for?
VSTET (Visual Studio Team Edition for Testers) which is in TFS (Team Foundation Server) - In what way is VSTET better than QTP?
script to check availibility of mail in yahoo mail box in qtp
Stop automating the tests which run once?
What do you think holds testers back to do automation? Is there a way to overcome it?
How do we Test the C++ and Unix Application Using Automated Tool.
How do you select which automation tool is best suited for you?
How do you plan test automation?
How do you choose which automation tool is best for your specific scenario?
Please explain what is the hybrid framework?
1.Which functinalities of QTP using in onlinebanking system? 2.in lift which kind of testing you perform? 3.how do you test money is transform from one account to another account in online banking?
Explain me what kinds of annotations are used in testng?