Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5AFFE200C22 for ; Tue, 7 Feb 2017 06:00:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 599E7160B64; Tue, 7 Feb 2017 05:00:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A4061160B56 for ; Tue, 7 Feb 2017 06:00:47 +0100 (CET) Received: (qmail 28620 invoked by uid 500); 7 Feb 2017 05:00:46 -0000 Mailing-List: contact commits-help@zeppelin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zeppelin.apache.org Delivered-To: mailing list commits@zeppelin.apache.org Received: (qmail 28611 invoked by uid 99); 7 Feb 2017 05:00:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2017 05:00:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A29EEDFBE6; Tue, 7 Feb 2017 05:00:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: moon@apache.org To: commits@zeppelin.apache.org Message-Id: <9806ef05dfa44bef88b2b3c0c173afa2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: zeppelin git commit: [ZEPPELIN-2042] Document how to run selenium test Date: Tue, 7 Feb 2017 05:00:46 +0000 (UTC) archived-at: Tue, 07 Feb 2017 05:00:48 -0000 Repository: zeppelin Updated Branches: refs/heads/master 5bb38c89a -> 304842a3f [ZEPPELIN-2042] Document how to run selenium test ### What is this PR for? This PR document how to run selenium test in development environment ### What type of PR is it? Documentation ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-2042 ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Lee moon soo Closes #1967 from Leemoonsoo/doc_run_selenium_test and squashes the following commits: 3e39c29 [Lee moon soo] Some info how to install firefox 31.0 295b700 [Lee moon soo] fix typo e1312f3 [Lee moon soo] Add 'Run Selenium test' section Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/304842a3 Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/304842a3 Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/304842a3 Branch: refs/heads/master Commit: 304842a3fcde5debb336557b38ea1a9989fe768d Parents: 5bb38c8 Author: Lee moon soo Authored: Sun Feb 5 20:28:20 2017 +0900 Committer: Lee moon soo Committed: Tue Feb 7 14:00:14 2017 +0900 ---------------------------------------------------------------------- docs/development/howtocontribute.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/304842a3/docs/development/howtocontribute.md ---------------------------------------------------------------------- diff --git a/docs/development/howtocontribute.md b/docs/development/howtocontribute.md index 5de4458..cb0fa6e 100644 --- a/docs/development/howtocontribute.md +++ b/docs/development/howtocontribute.md @@ -113,6 +113,23 @@ cd /zeppelin-interpreter/src/main/thrift ./genthrift.sh ``` +### Run Selenium test + +Zeppelin has [set of integration tests](https://github.com/apache/zeppelin/tree/master/zeppelin-server/src/test/java/org/apache/zeppelin/integration) using Selenium. To run these test, first build and run Zeppelin and make sure Zeppelin is running on port 8080. Then you can run test using following command + +``` +TEST_SELENIUM=true mvn test -Dtest=[TEST_NAME] -DfailIfNoTests=false -pl 'zeppelin-interpreter,zeppelin-zengine,zeppelin-server' +``` + +For example, to run [ParagraphActionIT](https://github.com/apache/zeppelin/blob/master/zeppelin-server/src/test/java/org/apache/zeppelin/integration/ParagraphActionsIT.java), + +``` +TEST_SELENIUM=true mvn test -Dtest=ParagraphActionsIT -DfailIfNoTests=false -pl 'zeppelin-interpreter,zeppelin-zengine,zeppelin-server' +``` + +You'll need Firefox web browser installed in your development environment. While CI server uses [Firefox 31.0](https://ftp.mozilla.org/pub/firefox/releases/31.0/) to run selenium test, it is good idea to install the same version (disable auto update to keep the version). + + ## Where to Start You can find issues for beginner & newbie