Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated version to v1.1

Added license in package
Updated readme
  • Loading branch information...
commit 01c8116dbfda6e91b042db0f9ebe6f592f573640 1 parent 40bae31
@WAAT WAAT authored
View
37 README
@@ -3,34 +3,43 @@
* Email: anandb@thoughtworks.com, abagmar@gmail.com
*/
-1. Download WAAT distributable from: https://github.com/WAAT/WAAT/blob/master/dist/WAAT_v1.0.zip
+1. Download WAAT distributable from: https://github.com/WAAT/WAAT/blob/master/dist/WAAT_v1.1.zip
2. Extract contents from this zip file in your project's lib folder (say: c:\myTestProject\lib)
-3. Copy your framework specific Script Runner file
- from: c:\myTestProject\lib\WAAT\samplescripts\com\thoughtworks\webanalyticsautomation\scriptrunner\SeleniumScriptRunner.java
- to your framework folder, say: c:\myTestProject\testsrc\com\abc\project\scriptrunner\SeleniumScriptRunner.java
-
-4. Update the package name in this copied SeleniumScriptRunner.java
-5. In your project settings / build file, add the following directory in the classpath references:
+3. In your project settings / build file, add the following directory in the classpath references:
c:\myTestProject\lib\WAAT\libraries
-6. WAAT uses log4j for logging. You can use your own log4j.jar, or the one bundled with WAAT
+4. WAAT uses log4j for logging. You can use your own log4j.jar, or the one bundled with WAAT
(in c:\myTestProject\lib\WAAT\libraries folder)
-7. If you want to use the default log4j properties file in WAAT, then in your project settings / build file, add the
+5. If you want to use the default log4j properties file in WAAT, then in your project settings / build file, add the
following directory in the classpath references:
c:\myTestProject\lib\WAAT\resources
You will need to provide the absolute path to the log4j.properties when you use WAAT in your tests.
-8. In your existing tests, where you want to do Web Analytics testing, make the changes described in
- c:\myTestProject\lib\WAAT\docs\Changes in existing Tests.html
- (Content available in other file formats too in c:\myTestProject\lib\WAAT\docs)
+6. Copy your framework specific Script Runner file
+ Selenium:
+ copy from: c:\myTestProject\lib\WAAT\samplescripts\com\thoughtworks\webanalyticsautomation\scriptrunner\SeleniumScriptRunner.java
+ to your framework folder, say: c:\myTestProject\testsrc\com\abc\project\scriptrunner\SeleniumScriptRunner.java
+
+ Update the package name in this copied SeleniumScriptRunner.java
+
+ WebDriver:
+ copy from: c:\myTestProject\lib\WAAT\samplescripts\com\thoughtworks\webanalyticsautomation\scriptrunner\WebDriverScriptRunner.java
+ to your framework folder, say: c:\myTestProject\testsrc\com\abc\project\scriptrunner\WebDriverScriptRunner.java
+
+ Update the package name in this copied WebDriverScriptRunner.java
+
+ NOTES:
+ > In your existing tests, where you want to do Web Analytics testing, make the changes described in
+ c:\myTestProject\lib\WAAT\docs\Changes in existing Tests.html
+ (Content available in other file formats too in c:\myTestProject\lib\WAAT\docs)
- NOTE: Once enabled, remember to disable WAAT testing in your tests, unless you want all tests to do the Web Analytic testing.
+ > Once enabled, remember to disable WAAT testing in your tests, unless you want all tests to do the Web Analytic testing.
-9. Test data should be provided in a specific format as specified in the sample file available in:
+7. Test data should be provided in a specific format as specified in the sample file available in:
c:\myTestProject\lib\WAAT\sampledata\OmnitureTestData.xml
Note: The delimiter to use is || (2 pipe symbols)
View
3  build.xml
@@ -121,6 +121,9 @@
<mkdir dir="${zip.dir}/WAAT/resources"/>
<mkdir dir="${zip.dir}/WAAT/docs"/>
+ <!--Copy the LICENSE file to the root folder -->
+ <copy file="${basedir}/LICENSE.txt" todir="${zip.dir}/WAAT" overwrite="true" verbose="true"/>
+
<!--Copy the appropriate WAAT.jar in the lib folder -->
<copy file="${JAR_FILE_IN_ZIP}" todir="${zip.dir}/WAAT/lib" overwrite="true" verbose="true"/>
View
2  resources/waat.properties
@@ -1,6 +1,6 @@
TEST_TYPE=test
PRODUCTION_TYPE=prod
SRC_DIR=src
-VERSION=v1.0
+VERSION=v1.1
JAR_FILE_PREFIX=WAAT
threadCount=1
View
22 test/com/thoughtworks/webanalyticsautomation/EngineWithWebDriverTest.java
@@ -1,16 +1,16 @@
- package com.thoughtworks.webanalyticsautomation;
+package com.thoughtworks.webanalyticsautomation;
- import com.thoughtworks.webanalyticsautomation.common.TestBase;
- import com.thoughtworks.webanalyticsautomation.scriptrunner.WebDriverScriptRunner;
- import com.thoughtworks.webanalyticsautomation.scriptrunner.helper.WebDriverScriptRunnerHelper;
- import com.thoughtworks.webanalyticsautomation.utils.BROWSER;
- import org.openqa.selenium.WebDriver;
- import org.testng.annotations.AfterMethod;
- import org.testng.annotations.Test;
+import com.thoughtworks.webanalyticsautomation.common.TestBase;
+import com.thoughtworks.webanalyticsautomation.scriptrunner.WebDriverScriptRunner;
+import com.thoughtworks.webanalyticsautomation.scriptrunner.helper.WebDriverScriptRunnerHelper;
+import com.thoughtworks.webanalyticsautomation.utils.BROWSER;
+import org.openqa.selenium.WebDriver;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.Test;
- import static com.thoughtworks.webanalyticsautomation.Controller.getInstance;
- import static org.testng.Assert.assertEquals;
- import static org.testng.Assert.assertNotNull;
+import static com.thoughtworks.webanalyticsautomation.Controller.getInstance;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertNotNull;
/**
* Created by: Anand Bagmar
Please sign in to comment.
Something went wrong with that request. Please try again.