testng中方法为什么执行两次?
上一篇 / 下一篇 2012-07-03 00:41:24 / 个人分类:TestNG/Ant/Eclipse/Java
TAG:
- 引用 删除 dian106106 / 2012-07-04 00:41:56
-
其实就是3个class的问题:
a类:CommonFuncitons.java
b类: 1.class TestsHelper extends CommonFunctions 2.存放所有的方法,即testcase
c类: Test.java 调用b类中的方法
public class CommonFunctions { }
public partial class SVTTestsHelper : CommonFunctions {
commonFunction = new CommonFunctions();}
public class SVTTests{
commonFunctions = new CommonFunctions();
helper = new SVTTestsHelper();}
- 引用 删除 dian106106 / 2012-07-03 23:38:54
-
CommonClass commonFunction = new CommonClass();
commonFunction.getSignIn(username,password);
- 引用 删除 dian106106 / 2012-07-03 00:46:39
-
输出结果:
PASSED: getSignIn("dian****", "2198***")
PASSED: bingSearchWithOpenNew
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | 3 | 4 | ||||||
5 | 6 | 7 | 8 | 9 | 10 | 11 | |||
12 | 13 | 14 | 15 | 16 | 17 | 18 | |||
19 | 20 | 21 | 22 | 23 | 24 | 25 | |||
26 | 27 | 28 | 29 | 30 | 31 |
我的存档
数据统计
- 访问量: 74624
- 日志数: 80
- 建立时间: 2012-04-12
- 更新时间: 2013-05-21