- divya_agsrdkProfessional
- Posts : 93
Join date : 2013-01-17
program in eclipse
Thu Jan 31, 2013 11:25 am
import com.thoughtworks.selenium.*;
@SuppressWarnings("deprecation")
public class login extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*firefox");
}
public void testloginlogout(){
selenium.setSpeed("2000");
selenium.open("/login.php");
selenium.windowMaximize();
selenium.type("//input[@name='username']", "mytest");
selenium.type("//input[@name='password']", "mytest");
selenium.click("//input[@type='button']");
selenium.waitForPageToLoad("50000");
}
}
Can u tel me wt those package import com.thoughtworks.selenium.*;does?
@SuppressWarnings("deprecation") means --?
SeleneseTestCase -- >wt is it ? class?
selenium.click()--- selenium and click wt v say here?
@SuppressWarnings("deprecation")
public class login extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*firefox");
}
public void testloginlogout(){
selenium.setSpeed("2000");
selenium.open("/login.php");
selenium.windowMaximize();
selenium.type("//input[@name='username']", "mytest");
selenium.type("//input[@name='password']", "mytest");
selenium.click("//input[@type='button']");
selenium.waitForPageToLoad("50000");
}
}
Can u tel me wt those package import com.thoughtworks.selenium.*;does?
@SuppressWarnings("deprecation") means --?
SeleneseTestCase -- >wt is it ? class?
selenium.click()--- selenium and click wt v say here?
- adityacProfessional
- Posts : 101
Join date : 2013-01-17
Re: program in eclipse
Thu Jan 31, 2013 2:06 pm
-SeleneseTestCase is a class and u r using the code of that class in login class
-U might be created an object DefaultSelenium selenium=new DefaultSelenium(); sme thng lik this...whch means methods in DefaultSelenium is stored in selenium and u r using the selenium.
-U r importing the packages of com.thoughtworks.selenium.* using import
-the @SuppressWarnings is a annotation tells the compiler to suppress specific warnings that it would otherwise generate
hope u understood
-U might be created an object DefaultSelenium selenium=new DefaultSelenium(); sme thng lik this...whch means methods in DefaultSelenium is stored in selenium and u r using the selenium.
-U r importing the packages of com.thoughtworks.selenium.* using import
-the @SuppressWarnings is a annotation tells the compiler to suppress specific warnings that it would otherwise generate
hope u understood
- divya_agsrdkProfessional
- Posts : 93
Join date : 2013-01-17
Re: program in eclipse
Thu Jan 31, 2013 2:21 pm
ya got it..
selenium .click - wt v call selenium n click as?
Like method?
DefaultSelenium selenium=new DefaultSelenium();
here wt s selenium ?
DefaultSelenium ?
wt v call them?
selenium .click - wt v call selenium n click as?
Like method?
DefaultSelenium selenium=new DefaultSelenium();
here wt s selenium ?
DefaultSelenium ?
wt v call them?
- adityacProfessional
- Posts : 101
Join date : 2013-01-17
Re: program in eclipse
Thu Jan 31, 2013 2:38 pm
DefaultSelenium selenium=new DefaultSelenium();
DefaultSelenium = class name
selenium=object...
Are u aware of java??
DefaultSelenium = class name
selenium=object...
Are u aware of java??
- divya_agsrdkProfessional
- Posts : 93
Join date : 2013-01-17
Re: program in eclipse
Thu Jan 31, 2013 2:48 pm
ya knw java.. once confirmed.
Y v need to give @ dis notation?
com.thoughtworks.selenium.*
here selenium is a package.
Y v need to give @ dis notation?
com.thoughtworks.selenium.*
here selenium is a package.
- adityacProfessional
- Posts : 101
Join date : 2013-01-17
Re: program in eclipse
Thu Jan 31, 2013 4:07 pm
@ indicates tht it is annotation
com.thoughtworks.selenium.* is a package
com.thoughtworks.selenium.* is a package
- divya_agsrdkProfessional
- Posts : 93
Join date : 2013-01-17
Re: program in eclipse
Mon Feb 04, 2013 2:28 pm
where this package ll be?
- adityacProfessional
- Posts : 101
Join date : 2013-01-17
Re: program in eclipse
Mon Feb 04, 2013 10:47 pm
in jar files
- divya_agsrdkProfessional
- Posts : 93
Join date : 2013-01-17
Re: program in eclipse
Tue Feb 05, 2013 11:15 am
which jar files?
- adityacProfessional
- Posts : 101
Join date : 2013-01-17
Re: program in eclipse
Tue Feb 05, 2013 11:29 am
u will import selenium-server-standalone-2.25.0.jar file into eclipse
- divya_agsrdkProfessional
- Posts : 93
Join date : 2013-01-17
Re: program in eclipse
Wed Feb 06, 2013 1:15 pm
ya thx...
- divya_agsrdkProfessional
- Posts : 93
Join date : 2013-01-17
Re: program in eclipse
Mon Feb 18, 2013 3:15 pm
In the above program, its like,,
public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*firefox");
}
here wt v call setUp() ? is it a method or function
public void setUp() throws Exception {
setUp("http://php.thedemosite.co.uk/","*firefox");
}
here wt v call setUp() ? is it a method or function
- adityacProfessional
- Posts : 101
Join date : 2013-01-17
Re: program in eclipse
Mon Feb 25, 2013 3:26 pm
setUp() is a method....
Permissions in this forum:
You cannot reply to topics in this forum