This is an automated email from the ASF dual-hosted git repository.
liuxun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push:
new d92d008 [ZEPPELIN-4159] Fixed ZeppelinIT#testAngularDisplay() failure
d92d008 is described below
commit d92d00871dc1e0d48b2cec41a1f91294116f4a94
Author: Xun Liu <[email protected]>
AuthorDate: Tue May 14 11:01:10 2019 +0800
[ZEPPELIN-4159] Fixed ZeppelinIT#testAngularDisplay() failure
### What is this PR for?
1. setTextOfParagraph(1, "println(\"%angular <div
id=\\'angularTestButton\\'
ng-click=\\'myVar=myVar+1\\'>BindingTest_{{myVar}}_</div>\")");
2. driver.findElement(By.xpath(getParagraphXPath(1) +
"//div[id=\"angularTestButton\"]")).click();
```
org.openqa.selenium.NoSuchElementException: Unable to locate element:
{"method":"xpath","selector":"(//div[ng-controller=\"ParagraphCtrl\"])[1]//div[id=\"angularTestButton\"]"}
Command duration or timeout: 0 milliseconds
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at
org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at
org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
at
org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
at
org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
at
org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at
org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:371)
at
org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:473)
at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
at
org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)
at
org.apache.zeppelin.integration.ZeppelinIT.testAngularDisplay(ZeppelinIT.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.Verifier$1.evaluate(Verifier.java:35)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: org.openqa.selenium.NoSuchElementException: Unable to locate
element:
{"method":"xpath","selector":"(//div[ng-controller=\"ParagraphCtrl\"])[1]//div[id=\"angularTestButton\"]"}
```
### What type of PR is it?
[Bug Fix]
### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-4159
### How should this be tested?
* [CI pass](https://travis-ci.org/liuxunorg/zeppelin/builds/532093683)
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update? NO
* Is there breaking changes for older versions? NO
* Does this needs documentation? NO
Author: Xun Liu <[email protected]>
Closes #3362 from liuxunorg/ZEPPELIN-4159 and squashes the following
commits:
35b43b077 [Xun Liu] [ZEPPELIN-4159] Fixed ZeppelinIT#testAngularDisplay()
failure
---
.../src/test/java/org/apache/zeppelin/integration/ZeppelinIT.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/zeppelin-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinIT.java
b/zeppelin-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinIT.java
index 74c3326..66ed342 100644
---
a/zeppelin-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinIT.java
+++
b/zeppelin-integration/src/test/java/org/apache/zeppelin/integration/ZeppelinIT.java
@@ -77,7 +77,7 @@ public class ZeppelinIT extends AbstractZeppelinIT {
* print angular template
* %angular <div id='angularTestButton'
ng-click='myVar=myVar+1'>BindingTest_{{myVar}}_</div>
*/
- setTextOfParagraph(1, "println(\"%angular <div
id=\\'angularTestButton\\'
ng-click=\\'myVar=myVar+1\\'>BindingTest_{{myVar}}_</div>\")");
+ setTextOfParagraph(1, "%angular <div id=\\'angularTestButton\\'
ng-click=\\'myVar=myVar+1\\'>BindingTest_{{myVar}}_</div>");
runParagraph(1);
waitForParagraph(1, "FINISHED");