Re: [testng-users] i try to execute below code in eclipse, there is no response

26 views
Skip to first unread message

吴亭

unread,
Aug 9, 2012, 1:25:45 AM8/9/12
to testng...@googlegroups.com
Hi Balaj,

What do you mean there is no response?

Could you attach your logs here? Or maybe you could change the verbose level to 10 to output more logs.

Br,
Tim

2012/8/9 Balaji <balajist...@gmail.com>
hi

I am new to TestNG

i try to execute below code in eclipse, there is no response

Could you please suggest the solution

Sample code
=======================================

package com.asqa.testng.examples;
 
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleneseTestNgHelper;
 
public class SampleTest1 extends SeleneseTestNgHelper{
 
@BeforeSuite
public void setUp(){
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://yahoo.com");
selenium.start();
}
@Test
public void testHomepage(){
selenium.open("http://yahoo.com");
selenium.waitForPageToLoad("30000");
selenium.windowMaximize();
}
@AfterSuite
public void tearDown(){
selenium.stop();
}
Sample XML
=================

<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
<suite name="Sample test suite" verbose="1" preserve-order="false">
<test name="Sample Test Demonstrating testNG flow">
    <classes>
      <class name="com.asqa.testng.examples.SampleTest1" />
    </classes>
  </test>
</suite>


}


--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/mJoAZTsJ8DoJ.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

Reply all
Reply to author
Forward
0 new messages