--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
import java.io.File;
import com.thoughtworks.selenium.*;
import org.junit.Before;
import org.junit.Test;
public class testreport extends SeleneseTestCase {
@Before
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*firefox3", "http://royale.testbox.com/");
selenium.start();
}
@Test
public void testKrunchBox() throws Exception {
selenium.open("/newdefault.aspx?mode=logoff");
selenium.type("textbox2", "xxxxxr");
selenium.type("password", "xxxxx");
selenium.click("submit");
selenium.waitForPageToLoad("30000");
selenium.selectFrame("body");
selenium.click("link=01.04 Retailer performance trend");
selenium.waitForPopUp("X66", "50000");
selenium.selectWindow("name=X66");
selenium.click("CheckBoxList1_0");
selenium.click("btnsearch");
selenium.waitForPageToLoad("300000");
selenium.selectFrame("ReportFrameReportViewer1");
selenium.selectFrame("report");
String a= selenium.getText("//td[@id='oReportCell']/table/tbody/tr[1]/td/table/tbody/tr/td/table/tbody/tr[9]/td[7]");
System.out.print(a);
selenium.selectFrame("relative=up");
selenium.selectFrame("relative=up");
selenium.click("Button1");
selenium.selectWindow("title=Krunchbox");
selenium.click("link=01.31 Product Category Overview");
selenium.waitForPopUp("X26", "300000");
selenium.selectWindow("name=X26");
selenium.select("DropDownList4", "label=Ties");
selenium.click("btnsearch");
selenium.waitForPageToLoad("30000");
selenium.selectFrame("ReportFrameReportViewer1");
selenium.selectFrame("report");
String b= selenium.getText("//td[@id='oReportCell']/table/tbody/tr/td/table/tbody/tr[4]/td[2]/table/tbody/tr[8]/td[2]");
System.out.print(a);
Assert.assertEquals(a, b);
}
}
Which OS u r using. If Win 7 den please update Firefox path in ur Environment variables explicitly.
On Fri, Apr 15, 2011 at 10:23 AM, raj <rajen...@gmail.com> wrote:
No Sanjit, I have not tried yet due to some urgent work, I ll let you know the status soon
Hi
I have got strange issue with new social website http://www.appworld.co which i am working on.
Content in the right hand table always changes quite frequently based on the users like dislikes or playing comments etc...
Could you please anyone suggest how to keep track of new activities without going to another page.
Thanks -------Original Message------- |
Hi I have got strange issue with new social website http://www.appworld.co which i am working on.
Content in the right hand table always changes quite frequently based on the users like dislikes or playing comments etc...
Could you please anyone suggest how to keep track of new activities without going to another page.
Thanks |
Hi |
I have got strange issue with new social website http://www.appworld.co which i am working on.
Content in the right hand table always changes quite frequently based on the users like dislikes or playing comments etc...
|
Could you please anyone suggest how to automate the testing of the right hand box which keep track of new activities without going to another page.
Thanks |
What are you trying to test? Are you checking that there is content in the box, or are you looking for specific content?
Why does users likes/dislikes affect your test system, you aren’t testing on live are you?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
Hi,
I am testing on live few things.
What I want is if I click on those dynamic links it should take me to the correct app details. As it is changing frequently I am not able to track the content.
Also if anyone commented then I would like to make sure that comments are indeed there for that app.
Hope you got me
Thanks
-------Original Mhanksessage------- |
From: Mark Collin
Date: 19/04/2011 12:34:38
Subject: RE: [selenium-users] Re: Dynamic social element - getting strange issue What are you trying to test? Are you checking that there is content in the box, or are you looking for specific content?
Why does users likes/dislikes affect your test system, you aren’t testing on live are you?
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of johng...@gmail.com
-- |
First of all, Don’t test on live!!
Worst case scenario, your testing will break live and you will have an outage, secondly how are you going to reproduce any problems you find, it is not a controlled environment.
You can simulate user postings on your test site and run tests to check that the dynamic links are generated correctly, and that they link to the correct place. You can also simulate comments on your test site and check that they are applied to the right place and ensure they are not applied anywhere else.
Functional tests like this should have been performed before you went live not after.
If you want to randomly fill test with links and then have an automated test check they are all working correctly you will need to find a way to associate dynamic links with specific apps, you can then read in the dynamic link information and based upon that check that the app they link to is the correct one.
Regards
Mark
Thanks Mark for quick response.
We have tested all these manually before went live.
Lot of developments going on at the moment because within short period of time there is lot of traffic coming to this http://www.appworld.co so we have to automate ASAP all the elements to make development process faster.
OK I will check out your suggestions and see how it goes.
Thanks for your valuable suggetions. Cheers, |
Hi All,
I am also facing the same error with windows 7 firefox for Selenium.
I done every thing in path environment variables which you had suggested but still i am facing problem with the error i.e.,
Exception in thread "main" java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
Could you please help me.
Thanks in Advance
Sravani
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/XG9I5R-PfzUJ.
Don't print this unless you have to :)
--