Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1457D17E53 for ; Thu, 21 May 2015 00:16:48 +0000 (UTC) Received: (qmail 40641 invoked by uid 500); 21 May 2015 00:16:48 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 40601 invoked by uid 500); 21 May 2015 00:16:48 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 40583 invoked by uid 99); 21 May 2015 00:16:47 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2015 00:16:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3E0891A384C for ; Thu, 21 May 2015 00:16:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.22 X-Spam-Level: **** X-Spam-Status: No, score=4.22 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Xf1d0pLzisIm for ; Thu, 21 May 2015 00:16:45 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 2695C262C9 for ; Thu, 21 May 2015 00:16:45 +0000 (UTC) Received: (qmail 40561 invoked by uid 99); 21 May 2015 00:16:44 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2015 00:16:44 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id BD5BF1DD623; Thu, 21 May 2015 00:16:44 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4213800557059950668==" MIME-Version: 1.0 Subject: Re: Review Request 34240: Feed Wizard multiple tests From: "Raghav Gautam" To: "Namit Maheshwari" , "Raghav Gautam" , "Falcon" Date: Thu, 21 May 2015 00:16:44 -0000 Message-ID: <20150521001644.17474.62057@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Raghav Gautam" X-ReviewGroup: Falcon X-ReviewRequest-URL: https://reviews.apache.org/r/34240/ X-Sender: "Raghav Gautam" References: <20150520014926.14202.79720@reviews.apache.org> In-Reply-To: <20150520014926.14202.79720@reviews.apache.org> Reply-To: "Raghav Gautam" X-ReviewRequest-Repository: falcon-git --===============4213800557059950668== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/34240/#review84625 ----------------------------------------------------------- falcon-regression/merlin/src/main/java/org/apache/falcon/regression/ui/search/AbstractSearchPage.java In general, it is better to use list instead of arrays. The benefits are better toString and being able to search for element without for loop. falcon-regression/merlin/src/test/java/org/apache/falcon/regression/searchUI/FeedSetupTest.java Assert failure without appropriate message don't convey much. It will be great if you can add appropriate messages to be printed when assert fails. Applicable to other assertions as well. falcon-regression/merlin/src/test/java/org/apache/falcon/regression/searchUI/FeedSetupTest.java You can set tags and groups even if they are not null ? In case you need to do the check, using StringUtil.isEmpty() would be more robust. Applicable to other places also. falcon-regression/merlin/src/test/java/org/apache/falcon/regression/searchUI/FeedSetupTest.java Is this string same as the one that has been set a few lines above. In that case extract a constant so, that this fact is more obvious. If not, then how did you come up with this string ? falcon-regression/merlin/src/test/java/org/apache/falcon/regression/searchUI/FeedSetupTest.java Can you use all the path to be starting with prefix baseTestHDFSDir ? That way by looking at the path in the printed log/screenshot etc, we would know what test are we talking about. Applicable at multiple places. - Raghav Gautam On May 19, 2015, 6:49 p.m., Namit Maheshwari wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/34240/ > ----------------------------------------------------------- > > (Updated May 19, 2015, 6:49 p.m.) > > > Review request for Falcon. > > > Bugs: FALCON-1222 > https://issues.apache.org/jira/browse/FALCON-1222 > > > Repository: falcon-git > > > Description > ------- > > Feed Wizard multiple tests > > > Diffs > ----- > > falcon-regression/merlin/src/main/java/org/apache/falcon/regression/ui/search/AbstractSearchPage.java e72ce6706d7fe3331744d723894193bfbaff586a > falcon-regression/merlin/src/main/java/org/apache/falcon/regression/ui/search/FeedWizardPage.java 6eed4cef86c1974c3d30f0133b34894e24ac1750 > falcon-regression/merlin/src/test/java/org/apache/falcon/regression/searchUI/FeedSetupTest.java 8920f41129175a207ae6dee0659a514fef17bcfc > > Diff: https://reviews.apache.org/r/34240/diff/ > > > Testing > ------- > > Below new tests added. Tested the same. > testWizardCancel > testWizardXmlPreview > testGeneralStepEditXml > testGeneralStepDefaultScenario > testGeneralStepXmlPreview > testGeneralStepAddRemoveTag > testGeneralStepBlankOptionalFields > testTimingStepDefaultScenario > testTimingStepXmlPreview > testTimingStepEditXml > testTimingStepDropDownLists > testTimingStepAddDeleteProperties > testLocationStepValidValuesFS > testLocationStepValidCatalogStorage > testLocationStepBothLocationsAndTableUri > testLocationStepEditXml > testClustersStepDefaultScenario > testClustersStepDropDownLists > testClustersStepDefaultLocations > testClusterStepEditXml > testSummaryStepDefaultScenario > > > Thanks, > > Namit Maheshwari > > --===============4213800557059950668==--