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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Automation Testing AllOther Interview Questions

test cases test wheather window? test cases to test calculaor? test cases to test a reverse string program? test cases to test program{ int.parse(sting str) $return (int)}? test cases to test program{display string length}?

0 Answers   Adobe, Microsoft,


It is a 30 days project & the client is in Singapur and we have to submit daily report regarding 1) What are the completed works, 2) What are the Pending Works ,3) Work planed for next day. You are free to assume regarding the project. can anybody help me to write an email to the client or Senior person who is staying in abroad

0 Answers   ANZ,


Name some of the commonly used automation testing tools that are used for non-functional automation.

0 Answers  


hello frnds this pooja i hav started working on selenium with java ecllipse frnds could u tell me how to handle popup windows and security alerts i m jst trying and couldn't do anything plz help

0 Answers  


how many clients are using this application?

1 Answers   Mind Tree,






what is client server application.

2 Answers  


WHAT'S THE TESTER'S ROLE DURING MIGRATION OF CODE FROM TESTING TO PRODUCTION ENVIRONMENT

0 Answers   TCS,


Tell me how can the user get a text of a web element?

0 Answers  


Can we find all links on a web page?

0 Answers  


Tell us what is the difference between @factory and @dataprovider annotation?

0 Answers  


hi friends.....please help me...i have very ambiguity which one be selected between selenium or ETL-TESTING..

1 Answers  


hi, I want to study TIA portla V11. where can I get online courses?

0 Answers  


Categories