腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
如何
使用
testng.xml
在
包
中
运行
100个
类
中
的
Method1
?
automated-tests
、
testng
、
integration-testing
我必须在结构如下
的
包
中
运行
Method1
Package - Regression |-
method1
|-
method1
|--class3 .现在我需要编写这样一种方式,即所有
类
中
的
method1
都是<
浏览 15
提问于2019-02-25
得票数 0
3
回答
通过命令行
运行
testng.xml
-错误无法
在
类
路径: com.companyname.SSProject.LaunchSSProject中找到
类
command-line
、
testng
我
在
命令行上
使用
以下命令:获取错误消息:com.companyname.SSProject.LaunchSSProject:
在
类
路径
中
找不到
类
我
在
testng.xml
中<
浏览 2
提问于2015-06-22
得票数 2
回答已采纳
5
回答
错误:找不到或加载主
类
org.testng.remote.RemoteTestNG
java
、
eclipse
、
unit-testing
、
testng
我只为我
的
服务提供了一个test.java文件。我还创建了
testng.xml
文件。
使用
链接创建测试套件。我
使用
链接
运行
了该套件。保存在根文件夹
中
。该项目
使用
Maven进行编译。我
的
服务
类
在
com.ui.business.service.impl.myservice
包
中
。当我
使用
“
testng.xml
套件”
运行
TestNG时,我
浏览 8
提问于2015-10-05
得票数 7
1
回答
TestNG
的
属性dependsOnMethods不支持等级?
selenium-webdriver
、
automated-tests
、
testng
method3在这方面依赖于
method1
和method2。@Test // do test steps @Test(dependsOnMethods当我执行method2时,首先执行
meth
浏览 2
提问于2018-03-14
得票数 1
回答已采纳
1
回答
如何
在Cucumber,TestNg中分离公共步骤
类
和步骤定义
类
?
java
、
automation
、
cucumber
、
testng
、
bdd
我想问,如果我
在
相同
的
包
中有与特征文件GithubHomePage.feature相对应
的
步骤定义
类
GithubHomePageSteps.java和公共步骤
类
CommonSteps.java,那么我
如何
运行
测试用例在这里,
在
通用
的
steps
类
中
,我
在
setUp()
中
初始化了chrome驱动程序,
在
clean()
中</e
浏览 11
提问于2021-06-18
得票数 0
1
回答
无法
使用
testng.xml
在
TestNG
中
按组
运行
测试
testng
我已经
使用
了7.0.0版本
的
TestNG (也尝试了6.14.3版本),并且希望
使用
特定
的
组(比如Sanity )来
运行
测试,因此
testng.xml
类似于- System.out.println("Test4 of Test2");这些测试方法都在maven项目- src -> main -> test -> testngtest下
的
类
中
当从IDE
运行<
浏览 3
提问于2019-11-04
得票数 0
回答已采纳
1
回答
如何
一个接一个地
运行
testng
类
selenium-webdriver
、
automation
、
testng
我正在
运行
一个自动化测试,其中一个
包
中有两个
类
。下面是我
的
testng.xml
文件 <class name="first_Test.TestNG2"/> </tes
浏览 0
提问于2017-12-06
得票数 0
回答已采纳
8
回答
如何
在TestNG中排除
类
?
testng
这可以排除
testng.xml
中
的
类
吗?<packages></packages> 但它给出了错误。
浏览 1
提问于2012-08-28
得票数 16
回答已采纳
2
回答
无法读取
testng.xml
文件
中
声明
的
参数
java
、
xml
、
selenium
、
testng
getParam(String MyName) { }
Testng.xml
TestMethodWorker.java:129)注意:
testng.xml
中
的
代码不是颜色编码
的
。这会不会是
浏览 1
提问于2016-01-23
得票数 0
1
回答
testng
如何
运行
第二个
包
,直到第一个
包
中
的
类
都完成?
testng
我
在
IntelliJ IDEA上
使用
testng,我
的
testng.xml
文件如下所示:<test name="p0"> <package name="UItest.three" /> </pack
浏览 4
提问于2017-06-21
得票数 0
1
回答
使用
Ant
的
TestNg
ant
、
testng
当我
使用
testng.xml
运行
Test NG测试时,它
运行
得很好,但是如果我
使用
ant (Build.xml)
运行
testng.xml
,它会给出一个错误:无法
在
类
路径
中
细化
类
<xmlfileset dir="." includes="
testng.xml
&quo
浏览 0
提问于2010-11-03
得票数 0
1
回答
gradle测试
运行
主
类
gradle
、
build
、
automated-tests
、
testng
、
build.gradle
在
我
的
gradle.build文件
中
,我有以下
使用
静态
testng.xml
文件而不是虚拟文件
的
测试: useTestNG() { suites '
testng.xml
'} 据我所知,在
运行
命令gradle test时,它会查找<e
浏览 1
提问于2016-04-25
得票数 1
1
回答
testng.xml
报告未执行测试套件
中
的
所有测试用例
testng
我正在尝试用
testng.xml
运行
我
的
TestNG套件。我
在
我
的
套件
中
总共有四个
类
,但我只能
使用
所有方法一次
运行
两个
类
。假设我
在
每个
类
中有3个方法,因此
在
TestNG套件
中
,如果我只添加了两个
类
,
testng.xml
文件将
使用
6个方法
运行
这两个测试。现在,如果我尝试
浏览 42
提问于2020-05-01
得票数 0
3
回答
TestNG
中
的
测试用例不由maven执行
maven
、
selenium
我有一个带有testng脚本
的
maven项目,如下所示: </dependency> </project> 当我通过maven执行代码时,我得到了以下输出:我直接从eclipse
使用
"maven test“选项执行,还在命令行中<e
浏览 5
提问于2020-01-09
得票数 0
2
回答
如何
在Mac上
使用
命令行
运行
testng.xml
文件
android
、
macos
、
selenium
、
automation
、
testng
我可以直接从Eclipse
运行
它,但想知道
如何
在MAC上
使用
命令行
运行
它。
浏览 1
提问于2015-09-01
得票数 3
2
回答
有没有办法将testng测试分成块而不是全套来
运行
?
java
、
selenium
、
testng
、
appium
、
testng.xml
我
的
testng.xml
中有上百个测试,大多数测试由于时间问题而失败,但当我
在
块
中
运行
它们时,它工作得很好 我尝试过
的
一个无效
的
解决方案是将少量
的
测试划分到多个
testng.xml
文件
中
,并逐个
运行
,寻找可以在
运行
时执行相同操作
的
替代方案 下面是我
的
testng.xml
的
样子 <!<class na
浏览 25
提问于2019-04-12
得票数 2
2
回答
在
testng执行中保留
包
中
类
的
顺序
unit-testing
、
selenium
、
testng
、
ui-automation
我有一个包含两个
类
的
包
。我
的
testng.xml
看起来像这样: <packages> <packages>Class2总是首先
运行
,然后是Class1。我想先
运行
Class1,然后
运行
Class2。在这个<e
浏览 1
提问于2016-05-05
得票数 0
5
回答
如何
使用
Eclipse创建“
testng.xml
”
java
、
eclipse
、
selenium
、
testng
我是TestNG和Selenium
的
新手,并试图
使用
eclipse创建一个
testng.xml
。
在
www中进行了一些研究,并了解到可以通过正确单击Java
类
>> TestNG >>转换为TestNG来创建该文件。如果Java
类
已经包含@Test批注(!?)你能帮我用eclipse创建
testng.xml
吗? (我在用Eclipse露娜)
浏览 12
提问于2015-05-21
得票数 8
回答已采纳
2
回答
如何
通过命令行
使用
maven surefire执行Testng测试
command-line
、
testng
、
maven-surefire-plugin
我有一个
testng.xml
文件将参数输入到我
的
测试软件
中
。. --> mvn -DexclueTest=!apiXMLTest testMaven
包
都是最新
的
。
浏览 6
提问于2017-07-12
得票数 0
回答已采纳
2
回答
指定方法名称序列TestNG
testng
我正在
使用
TestNG以编程方式
运行
selenium测试。我想按我提到
的
顺序
运行
测试方法。 //tng.setTestNames
浏览 4
提问于2011-10-27
得票数 2
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
说实话:没用testng之前,从未想过自动化用例管理如此优雅
如何使用闭包函数在thinkphp模型中操作数据库的增删更查
使用TestNG listener实现Case失败重跑功能
java多线程编程——锁优化
干货分享!Java 多线程编程
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券