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
What are the important modules of an automation testing framework?
Does the Jmeter will generate any scripts? and anybody suggest with an example. how to use the Jmeter tool and also the How to anayse the Results?
Describe some problem that you had with automating testing tool.
What are main benefits of test automation?
Hello Friends, I am Looking for the Load runner-Performance testing institute in HYD. I see most of them in this site are suggesting for TS Technologies as best institute for PT load runner. We you pls suggest me, Does this institute offers good coaching on Weekend Sessions/Batches? Does it covers all the course contents in these session? Please help me on this guys..
Give difference between Intranet application, client server application, and web based application
What are the different types of testing framework techniques?
Can Any one tell me the difference between winrunner and test partner or qtp and test partner?
whether flash selenium supports to test Gaming application? like follows: identifying the images, dynamic animations, Dynamic value changes field and win conditions etcc..,
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
Can anyone tell me the correct answer of below question....it is about Bugzilla tool. When bug will find out at the time of executio where it will save or what is the location of bug??
Kindly let me know how to setup JMeter for functionality testing of a Web application.. The apache help doc is good but i m little confused with it... :(