GitHub user soralee reopened a pull request: https://github.com/apache/zeppelin/pull/2415
[ZEPPELIN-2661]Test: personalized mode action ### What is this PR for? Adding to personalized mode action case on Selenium test. Here is for checking scenario. #### 1. Simple action test : ``` 1. (admin) login, create a new note, run a paragraph with 'Before' text, turn on personalized mode, logout. > checkpoint : result of paragraph is 'Before'. 2. (user1) login, make sure it is on personalized mode and 'Before' in result of paragraph, logout. > checkpoint 1 : enabling personalized mode > checkpoint 2 : result of paragraph is 'Before'. 3. (admin) login, run after changing paragraph contents to 'After', check result of paragraph, logout. > checkpoint : changed from 'Before' to 'After' in paragraph result. 4. (user1) login, check whether result of paragraph is 'Before' or not. > checkpoint : result of paragraph is 'Before', 'After' means test fail. ``` #### 2. Graph action test : ``` 1. (admin) login, create a new note, run a paragraph with data of spark tutorial, change active graph to 'Bar Chart', turn on personalized mode, logout. > checkpoint 1: result string of paragraph contains import 'org.apache.commons.io.IOUtils'. > checkpoint 2 : check active graph is 'Bar Chart' 2. (user1) make sure it is on personalized mode and graph mode is on 'Bar Chart', try to change active graph to 'Table' and then check result > checkpoint 1 : enabling personalized mode > checkpoint 2 : final result of active graph is 'Bar Chart', 'Table' means test fail. ``` #### 3. Dynamic form action test : ``` 1. (admin) login, create a new note, run a paragraph with data of spark tutorial, logout. > checkpoint 1: result string of paragraph contains import 'org.apache.commons.io.IOUtils'. > checkpoint 2 : check a dynamic form value is '30' 2. (user1) make sure it is on personalized mode and dynamic form value is '30', try to change dynamic form value to '10' and then check result > checkpoint 1 : enabling personalized mode > checkpoint 2 : final result of dynamic form value is '30', '10' means test fail. ``` ### What type of PR is it? [ Test ] ### What is the Jira issue? * [ZEPPELIN-2661](https://issues.apache.org/jira/browse/ZEPPELIN-2661) ### How should this be tested? - build zeppelin with `mvn clean package -DskipTests' - 1. execute for Simple text test : `TEST_SELENIUM="true" mvn test -pl 'zeppelin-server' --am -DfailIfNoTests=false -Dtest=PersonalizeActionsIT#testSimpleAction` - 2. execute for Graph test : `TEST_SELENIUM="true" mvn test -pl 'zeppelin-server' --am -DfailIfNoTests=false -Dtest=PersonalizeActionsIT#testSimpleAction` - 3. execute for Graph test : `TEST_SELENIUM="true" mvn test -pl 'zeppelin-server' --am -DfailIfNoTests=false -Dtest=PersonalizeActionsIT#testDynamicFormAction` ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No You can merge this pull request into a Git repository by running: $ git pull https://github.com/soralee/zeppelin personalize_mode_test Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/2415.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2415 ---- commit ad77924a86fd749e016d972bf49a8f79821c81e6 Author: soralee <sora0...@zepl.com> Date: 2017-06-16T03:32:27Z personalize mode integration test commit 49a339a892efb6b039854f04705109157b32774e Author: soralee <sora0...@zepl.com> Date: 2017-06-16T05:34:02Z test: add to check point about being turned on personalized mode in user1 commit 8e13fad00bf74d99212ecc93a69776f207642799 Author: soralee <sora0...@zepl.com> Date: 2017-06-16T05:41:43Z style: added new line commit cb281a8906ad4607434562777c7a65592c28cd88 Author: soralee <sora0...@zepl.com> Date: 2017-06-16T06:15:23Z style: [minor] modify annotation commit ecac3c3644a42c16c13f2115fee26cc546a49819 Author: soralee <sora0...@zepl.com> Date: 2017-06-16T06:34:26Z style: modify method name commit 043e838732b64eaf51cd6d3694f3db745bd94790 Author: soralee <sora0...@zepl.com> Date: 2017-06-19T08:56:14Z fix: using minimum 'sleep' method commit 2581af1abda5da24f474517dae8c57df4224afa9 Author: soralee <sora0...@zepl.com> Date: 2017-06-21T05:29:50Z Fix: remove unnecessary newline and annotation commit dd7cb24631eea87ad9c72f9cc18a099aa9a4245a Author: soralee <sora0...@zepl.com> Date: 2017-06-22T10:05:00Z test&fix: adding graph action test & remove duplicated code commit d347fd1d00ddc126d0415267ae3259f7f61db950 Author: soralee <sora0...@zepl.com> Date: 2017-06-22T13:13:26Z Test&Fix: adding dynamic form action & code improvement commit 84ec218d4a707cbdf3acfcdbaa9d3e4a8bd30c47 Author: soralee <sora0...@zepl.com> Date: 2017-06-26T08:27:57Z fix: passing overall test and flaky test in login section commit 90cb1982de861694ea2337a58db56218a245ebe0 Author: soralee <sora0...@zepl.com> Date: 2017-06-26T09:51:47Z fix: improve simple code in paragraph of graph and dynamicform test case commit 1844159ecdcada2f933e0d660f6cb63b29f71787 Author: soralee <sora0...@zepl.com> Date: 2017-06-26T14:36:41Z fix: remove unnecessary code commit a2b3c288b64b86ccb46e8b173d4149ff2da3ea6f Author: soralee <sora0...@zepl.com> Date: 2017-06-26T16:28:53Z fix: flaky test in login section on Travis commit 970f6b2b105bd479f3eb7326266fd46b3dacd2d3 Author: soralee <sora0...@zepl.com> Date: 2017-06-27T01:54:21Z fix: Travis fail this line because of null commit a322427fd8a3da6f02eb0c8eb4fc46899b77b4ed Author: soralee <sora0...@zepl.com> Date: 2017-06-29T05:39:47Z fix: null exception in Travis commit 0d55b765d491b39e8405c22621e51f941937a605 Author: soralee <sora0...@zepl.com> Date: 2017-06-29T06:38:57Z fix: reuse code in AuthenticationIT login and logout commit 573a310560e0f59bd58ed14ebceb3d3b0f4dcdcf Author: soralee <sora0...@zepl.com> Date: 2017-06-29T08:01:50Z fix: remove annotation commit f2d14d9bbbf02598f7e6d149ecd5ba54f8bc32e2 Author: soralee <sora0...@zepl.com> Date: 2017-06-29T08:30:06Z missing endToEndTestEnabled method ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---