--
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.
warning(junit.framework.TestSuite$1)
junit.framework.AssertionFailedError: No tests found in
socialMediaTest.FB
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.TestSuite$1.runTest(TestSuite.java:97)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
478)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
344)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
196)
Can any body let know hot to resolved this issue
Thanks,
Sachin
On Dec 16, 2:25 pm, Sel List <sel.lis...@gmail.com> wrote:
> is the the complete error? What exception is being thrown?
> -Regards
>
> On Fri, Dec 16, 2011 at 1:14 PM, sachin Gainewar
> <sachingaine...@gmail.com>wrote:
> > >http://groups.google.com/group/selenium-users?hl=en.- Hide quoted text -
>
> - Show quoted text -
You need to extend SeleneseTestBase and get rid of the space:
public class scratch extends SeleneseTestBase {
Complete error thrown is
478)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:
344)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:
196)
Thanks,
Sachin
--
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
If you have received this email in error please notify postm...@ardescosolutions.com
Now below is code
----------------------------------
package socialMediaTest;
import com.thoughtworks.selenium.*;
public class FB extends SeleneseTestCase {
@Before
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://
www.cardratings.com");
selenium.start();
}
@Test
public void tesTFacebook() throws Exception
{
selenium.open("http://www.cardratings.com");
// click on FB icon
selenium.click("id=media_facebook_text");
selenium.setSpeed("20000");
//Click on twitter icon
selenium.click("id=media_twitter_text");
selenium.setSpeed("20000");
//Click on google+1 icon
selenium.click("id=button");
String [] winNames= selenium.getAllWindowTitles();
//All windows name should be displayed in console
for (int i= 0; i< winNames.length; i++)
{
System.out.println ("Window Titles are " + winNames[i]);
}
}
@After
public void tearDown () throws Exception {
selenium.stop();
}
}
> For more options, visit this group athttp://groups.google.com/group/selenium-users?hl=en.
>
> --
> This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
>
> If you have received this email in error please notify postmas...@ardescosolutions.com
Change SeleneseTestCase to SeleneseTestBase as previously suggested (and
shown in the code snippet I pasted back)
SeleneseTestBase doesn’t extend anything.