SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    what change does javascript need to run in RC?

    I am creating a small script using selenium IDE, like logging to a facebook site and then logging out.

    It generated code that i copied and pasted in eclipse to run the java script.The edited script is as below

    import com.thoughtworks.selenium.*;
    import java.util.regex.Pattern;

    public class test extends SeleneseTestCase {
    public void setUp() throws Exception {
    setUp("http://www.new.facebook.com/", "*iehta");
    }
    public void testNew() throws Exception {
    selenium.open("http://www.new.facebook.com/");
    selenium.click("email");
    selenium.type("email", "xxxxxxxxxxxx@xxxxx.com");
    selenium.type("pass", "xxxxxxxxx");
    selenium.click("//input[@value='Login']");
    selenium.waitForPageToLoad("30000");
    selenium.click("//div[@id='fb_menu_logout']/div/a/span");
    selenium.waitForPageToLoad("30000");
    }
    }

    For this code, the test is run but test complete is executed after running the script and IE closes and after this where to check the test result?

    for the same code if i replace a part of code with below code

    public class tes2 extends SeleneseTestCase {
    private Selenium sel;
    public void setUp() {
    sel = new DefaultSelenium("localhost",
    4444, "*iexplore", "http://en-gb.facebook.com/");
    sel.start();
    }
    IE will not exit. But if we check the log console its empty.

    Can anyone tell what needs to changes are to be made exactly in the java script created by IDE to make it run in seleniumRC?

    How exactly we can check the result?

    Is there any thread related to this query? Please let me know if i missed out to check in this forum.
    If i cant then who can?

  2. #2
    Advanced Member KishoreApplabs's Avatar
    Join Date
    Oct 2006
    Posts
    965
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: what change does javascript need to run in RC?

    Hi

    Selenium IDE Support FireFox Browser. if can run automation script other than FireFox Browser you can config SeleniumRC in any IDE Environment(like IntelljIDE,Elicip etc....). if can view the result. please login to Openqa.org site you will get more information about selenium.

    let me know if any clarifications

    -Kishore

  3. #3
    Member
    Join Date
    Nov 2006
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: what change does javascript need to run in RC?

    Kishore,

    Thanks for your response.

    I know that selenium IDE is used for Firefox. But since i have to test on IE i am recording the scripts using selenium IDE and running the generated scripts in RC using eclipse.

    To run the generated scripts i had to edit few commands that i found in web. But i don't know exactly what and why i need to change in the script?
    If i cant then who can?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:17 PM.

Copyright BetaSoft Inc.