Share
Go down
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

program in eclipse

on 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?
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: program in eclipse

on 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
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: program in eclipse

on 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?


adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: program in eclipse

on Thu Jan 31, 2013 2:38 pm
DefaultSelenium selenium=new DefaultSelenium();
DefaultSelenium = class name
selenium=object...

Are u aware of java??
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: program in eclipse

on 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.
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: program in eclipse

on Thu Jan 31, 2013 4:07 pm
@ indicates tht it is annotation

com.thoughtworks.selenium.* is a package

divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: program in eclipse

on Mon Feb 04, 2013 2:28 pm
where this package ll be?
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: program in eclipse

on Mon Feb 04, 2013 10:47 pm
in jar files
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: program in eclipse

on Tue Feb 05, 2013 11:15 am
which jar files?
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: program in eclipse

on Tue Feb 05, 2013 11:29 am
u will import selenium-server-standalone-2.25.0.jar file into eclipse
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: program in eclipse

on Wed Feb 06, 2013 1:15 pm
ya thx...
divya_agsrdk
Professional
Professional
Posts : 93
Join date : 2013-01-17

Re: program in eclipse

on 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
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Re: program in eclipse

on Mon Feb 25, 2013 3:26 pm
setUp() is a method....
Sponsored content

Re: program in eclipse

Back to top
Permissions in this forum:
You cannot reply to topics in this forum