`
winnerlxh
  • 浏览: 89733 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

testng使用例子

阅读更多
package testng;
import org.jboss.seam.mock.SeamTest;
import org.testng.annotations.Test;
public class LoginTest extends SeamTest{
@Test
public void testLogin() throws Exception{
new NonFacesRequest("/login.xhtml"){
protected void renderResponse() throws Exception { 
setValue("#{credentials.username}", "1");
setValue("#{credentials.password}", "1");
                assert (Boolean)getValue("#{authenticator.authenticate()}"); 
           } 
}.run();
}
}

参照地址:http://wan-2004.iteye.com/blog/309863
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics