Maven项目不会从Selenium项目的test-output文件夹中生成testng结果 [英] Maven project does not generate testng results within test-output folder from selenium project

查看:290
本文介绍了Maven项目不会从Selenium项目的test-output文件夹中生成testng结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用硒和TestNG创建了Maven项目.当我使用pom文件运行项目时,它不会生成TestNG结果(test-output文件夹).但是,当我以testng.xml->(右键单击)以-> TestNG套件的身份运行该项目时,它将生成结果

I have created maven project with selenium and TestNG. When I run the project using pom file it does not generate TestNG results (test-output folder). But when I run the project as testng.xml->(right click) run as -> TestNG suite, it generates the results

推荐答案

直接从testNg.xml运行-在maven项目中,默认情况下,html报告创建到test-output文件夹中

In Run from testNg.xml directly -By default in maven project html reports get created into test-output folder

如果我们使用surefire插件从pom.xml中运行-报表将创建到target \ surefire-reports中.

In case we run from pom.xml using surefire plugin - Reports will get created into target\surefire-reports.

这篇关于Maven项目不会从Selenium项目的test-output文件夹中生成testng结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆