简体   繁体   English

自动化测试问题

[英]Automated Testing issue

Very new to Automated Testing using Selenium and Appium.使用 Selenium 和 Appium 进行自动化测试非常新。
The entire setup was done by some vendor long back.整个设置是由某个供应商很久以前完成的。
Now i ran my test and the first test itself failed and I get the below error.现在我运行了我的测试,第一个测试本身失败了,我得到了以下错误。

在此处输入图像描述

The error is as shown below错误如下图
But I have my api key as shown below.但我有我的 api 密钥,如下所示。

在此处输入图像描述

error:错误:

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 12.048 s <<< FAILURE! - in TestSuite
[ERROR] runner.RunWebScenario.runScenario["Login Mode - General and Appointment Notifications Retrieval @Device:Mobile", "HAGo-NC"](1)  Time elapsed: 2.437 s  <<< FAILURE!
org.openqa.selenium.WebDriverException: 
No Sauce Connect tunnel found for identifier 'act-rdc'
Command duration or timeout: 1.81 seconds
Caused by: org.openqa.selenium.WebDriverException: 
No Sauce Connect tunnel found for identifier 'act-rdc'
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'pd2macbook1.local', ip: 'fe80:0:0:0:c5a:9e1a:d4fb:a12a%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.4', java.version: '13.0.1'
Driver info: driver.version: unknown

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   RunWebScenario>AbstractTestNGCucumberTests.runScenario:22 » WebDriver No Sauce...
[INFO] 
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  56.735 s
[INFO] Finished at: 2020-08-11T10:37:19+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project ha-go-test-plan: There are test failures.
[ERROR] 
[ERROR] Please refer to /Users/raksha/auto/notif-center-act/ha-go-test-plan/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

What is causing this issue?是什么导致了这个问题?
Automated testing is very confusing.自动化测试非常混乱。 Really need some guidance here!!这里真的需要一些指导!

Is the issue "Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project ha-go-test-plan: There are test failures."问题是“无法执行目标 org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5:test (default-test) on project ha-go-test-plan:有测试失败。”
or或者
"No sauce connect tunnel......."?? “无酱连接隧道……”??

If any further test data or screenshots are needed please comment and I will provide.如果需要任何进一步的测试数据或屏幕截图,请发表评论,我会提供。

The error means that your test requested a tunnel with the identifier "act-rdc" but it couldn't find one.该错误意味着您的测试请求了一个标识符为“act-rdc”的隧道,但它找不到。

There's a few reasons that might be:可能有几个原因:

  1. You haven't manually started a tunnel with that identifier您尚未使用该标识符手动启动隧道
  2. Your tooling usually starts tunnels but is failing to do so in your local environment您的工具通常会启动隧道,但在您的本地环境中无法这样做
  3. You have started a tunnel, but it's not accessible to the user running the tests您已经启动了一个隧道,但运行测试的用户无法访问它

I'm guessing your GitLab environment probably brings the tunnel up for you, or has one constantly running, and in Eclipse you're running a different setup.你的 GitLab 环境可能会为你带来隧道,或者有一个不断运行的隧道,并且在 Eclipse 中你正在运行不同的设置。

Some assertion statement failed in your test (Line 22 in AbstractTestNGCucumberTests):某些断言语句在您的测试中失败(AbstractTestNGCucumberTests 中的第 22 行):

RunWebScenario>AbstractTestNGCucumberTests.runScenario:22

Obviously you have the parameterized test显然你有参数化测试

runner.RunWebScenario.runScenario["Login Mode - General and Appointment Notifications Retrieval @Device:Mobile", "HAGo-NC"](1)

with two parameters:有两个参数:

  1. "Login Mode - General and Appointment Notifications Retrieval @Device:Mobile" “登录模式 - 常规和约会通知检索@Device:Mobile”
  2. "HAGo-NC" “哈戈-NC”

It's the first combination of parameters (1) which failed.这是失败的参数 (1) 的第一个组合。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM