-
Notifications
You must be signed in to change notification settings - Fork 2.8k
testSparkInterpreterDependencyLoading does not check for endToEndTestEnabled #709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testSparkInterpreterDependencyLoading does not check for endToEndTestEnabled #709
Conversation
bb8ebb5 to
73e6334
Compare
| testDepRemoveBtn.click(); | ||
| driver.findElement(By.xpath("//button[contains(.,'Save')]")).submit(); | ||
| driver.switchTo().alert().accept(); | ||
| } catch (ElementNotVisibleException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would there be any other error? like xpath returning no match (say the element has been removed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, what you say make sense, let me change all other catch from ElementNotVisibleException to just Exception, so, it catches every thing in #706
|
I think it's fine keeping this in #706 - either way is ok with me. |
|
Yes, agreed, this is much cleaner. |
73e6334 to
2642975
Compare
|
@felixcheung have replaced all "ElementNotVisibleException" to "Exception", and then log the same. |
|
looks good. |
| } catch (Exception e) { | ||
| LOG.error("Exception in ZeppelinIT while testSparkInterpreterDependencyLoading ", e); | ||
| File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we throw e after taking screenshot, if getting exception is considered as a test failure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure did the relevant change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to just throw e - exception stack should already have the test name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @felixcheung, made the required change.
35ae3c9 to
c60858d
Compare
c60858d to
2d9aa98
Compare
|
@felixcheung @Leemoonsoo Thanks for the review. I have addressed the comment. |
| LOG.error("Exception in ZeppelinIT while testAngularDisplay ", e); | ||
| File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); | ||
|
|
||
| throw new Exception(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we instead say throw e; here? e is already an Exception
http://stackoverflow.com/questions/1097527/rethrowing-exceptions-in-java-without-losing-the-stack-trace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it!!! missed it. Thank you. :)
|
looks good, thanks. |
|
LGTM |
### What is this PR for? Test functionality of spark, pyspark, sparksql ### What type of PR is it? Improvement ### Todos * [x] - Selenium for spark * [x] - Selenium for pyspark * [x] - Selenium for sparksql * [x] - refactor with #619 ### Is there a relevant Jira issue? ZEPPELIN-587 ### How should this be tested? On macOS PATH=~/Applications/Firefox.app/Contents/MacOS/:$PATH CI="" \ mvn -Dtest=org.apache.zeppelin.integration.TestSparkParagraph -Denforcer.skip=true \ test -pl zeppelin-server Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes #654 from prabhjyotsingh/ZEPPELIN-587 and squashes the following commits: 8f24695 [Prabhjyot Singh] use handleException in all other test cases remove test for spark 1.1.1 more meaningful log message 28dfc55 [Prabhjyot Singh] thorwong exception similar to #709 21bcc45 [Prabhjyot Singh] Merge remote-tracking branch 'origin/master' into ZEPPELIN-587 b05b81b [Prabhjyot Singh] have SHIFT_ENTER enum 9a206f4 [Prabhjyot Singh] add missing endToEndTestEnabled check for testSparkInterpreterDependencyLoading ab03287 [Prabhjyot Singh] have static import of AbstractZeppelinIT.HelperKeys.*, and rg.openqa.selenium.Keys.* 5187a16 [Prabhjyot Singh] check if spark version is less than 1.3 then don't append ".toDF()" 6927f7e [Prabhjyot Singh] CI FIX 9236e3c [Prabhjyot Singh] implemeting @bzz review comments 2c28758 [Prabhjyot Singh] missed refactor with #619 d49344f [Prabhjyot Singh] selenium test spark, pyspark and sparkSql
What is this PR for?
This is a fix for selenium test case
testSparkInterpreterDependencyLoadingthat does not check forendToEndTestEnabledcausing build to fail on local. (mvn $TEST_FLAG $PROFILE -B)Used to get this error in file
./zeppelin-server/target/failsafe-reports/org.apache.zeppelin.ZeppelinIT.txtWhat type of PR is it?
Hot Fix
Todos
Is there a relevant Jira issue?
N/A
How should this be tested?
mvn $TEST_FLAG $PROFILE -Bshould not fail on local when env variable "CI" is not set.