Automation Testing (7699)
Manual Testing (7121)
QA Concepts (917)
Mobile Testing (238)
Test Cases (630)
Test Documents Reporting (59)
Database Testing (90)
Behavior Driven Development (BDD) (103)
Testing AllOther (1138) write a qtp script to enter user name & password for flight reservation login page from excel sheet
1 10579Hi, 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
2628
In manual testing, what are stubs and drivers?
What is defect analysis?
What is data driver in qtp?
what is the difference between keyword driven frame work and data driven frame work.
What is the negative testing and example
What a team leader will test first when s/he will get new module to test?
how deployment phase of SDLC differs in product based and in service based company ?
which test strategy your are fallowing in your company?which documents u r using in software development life cycle?
Q) Create Preffered customer: As a customer when i purchase more than $5000 in goods since my first purchase, I become a preffered customer so that i can receive the benefits associated with that status.
What is keyword driven automation?
How To write Wimax field testing test cases,,,,? both negitive and Positive,,,,follows rule Tringulation (Logitude and latitude)
what are the testing frameworks used in selenium?
Tell me how could ajax controls be handled in webdriver?
The hybrid framework can be implemented for any application. Is it true?
What is web application testing