Automated Testing issue

huangapple go评论61阅读模式
英文:

Automated Testing issue

问题

以下是您要翻译的内容:

"Very new to Automated Testing using Selenium and 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.

Automated Testing issue

The error is as shown below
But I have my api key as shown below.

Automated Testing issue

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."
or
"No sauce connect tunnel......."?
If any further test data or screenshots are needed please comment and I will provide.
1: https://i.stack.imgur.com/2Lc6K.png
2: https://i.stack.imgur.com/7be45.png"

英文:

Very new to Automated Testing using Selenium and Appium.<br/>
The entire setup was done by some vendor long back. <br/>
Now i ran my test and the first test itself failed and I get the below error.

Automated Testing issue

The error is as shown below<br/>
But I have my api key as shown below.

Automated Testing issue

error:

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

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   RunWebScenario&gt;AbstractTestNGCucumberTests.runScenario:22 &#187; 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] -&gt; [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? <br/>
Automated testing is very confusing. Really need some guidance here!!<br/>

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." <br/>
or <br/>
"No sauce connect tunnel......."??<br/>

If any further test data or screenshots are needed please comment and I will provide.

答案1

得分: 1

错误的意思是您的测试请求使用标识符"act-rdc"创建了一个隧道,但未能找到该隧道。

可能有以下几个原因:

  1. 您尚未手动启动具有该标识符的隧道。
  2. 您的工具通常会启动隧道,但在您的本地环境中无法执行此操作。
  3. 您已启动一个隧道,但该隧道对运行测试的用户不可访问。

猜测您的GitLab环境可能会为您启动隧道,或者已经有一个隧道在运行,而在Eclipse中,您可能在运行不同的设置。

英文:

The error means that your test requested a tunnel with the identifier "act-rdc" but it couldn't find one.

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.

答案2

得分: 0

在您的测试中,某个断言语句失败了(在AbstractTestNGCucumberTests的第22行):

RunWebScenario>AbstractTestNGCucumberTests.runScenario:22

显然,您有一个带参数的测试:

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

这个测试有两个参数:

  1. "Login Mode - General and Appointment Notifications Retrieval @Device:Mobile"
  2. "HAGo-NC"

是第一个参数组合(1)失败了。

英文:

Some assertion statement failed in your test (Line 22 in AbstractTestNGCucumberTests):

RunWebScenario&gt;AbstractTestNGCucumberTests.runScenario:22

Obviously you have the parameterized test

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

with two parameters:

  1. "Login Mode - General and Appointment Notifications Retrieval @Device:Mobile"
  2. "HAGo-NC"

It's the first combination of parameters (1) which failed.

huangapple
  • 本文由 发表于 2020年8月10日 14:46:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/63335350.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定