Wednesday, 11 June 2014

Data Driven Framework - XML


"Data Driven Framework(DDF) for XML" reads the test data from XML file.
DDF XML Wrapper doesn't depend on other jar files.

Prerequisite:
1. Java 1.6
2. Eclipse IDE
3. Eclipse IDE configured with TestNG Plugin.

Set the java build path for jar file, follow the below steps:
1. Download the  "AH-DDF-<<Version>>.zip" from repository.
2. Extract the "AH-DDF-<<Version>>.zip"
3. Extracted "AH-DDF-<<Version>>.zip" contains the "docs", "release notes", "AH-DDF-<<Version>>.jar" and "examples".
4. Set "AH-DDF-<<Version>>.jar" in the java build path.

Working with example program:
5. Copy the "examples" folder present in the extracted "AH-DDF-<<Version>>.zip" file into the "src" folder of Eclipse IDE project.
6. Update the XML file path in "TestData.java" present at "\src\examples\test\xml\TestData.java"

Execution:
7. Execute the "TestData.java"
> Open the "TestData.java"
> Right click in the eclipse ide(i.e. in "TestData.java")
> Select the menu "Run As" --> "TestNG Test"
> "TestData.java" is executed by "TestNG API" with the help of "TestNG Plugin" configured in Eclipse IDE (Pre-requisite: TestNG Plugin is configured for Eclipse IDE).

8. Results (or) output is displayed in the Console.
> To see the console click on "Windows" menu --> "Show View" --> "Console"


DDF XML  Versions
Click the below links to access the pages.
DDF - Version 3.0.3 
DDF - Version 3.0.2 
DDF - Version 3.0.1 
DDF - Version 2.0 

<< Previous

Tuesday, 10 June 2014

Test Automation Framework


Hello All, Welcome to the blog "http://automation-home.blogspot.in"

Right now we have one framework in place(i.e. DDF).

Click the links below to access the pages.
1. DDF (Data Driven Framework)
    Prerequisite: Requires Java and TestNG API.

      1.1. DDF - Workbook (Prerequisites: Java 1.6 or greater + TestNG API + POI API)
                  DDF - Workbook Version 4.1
                  DDF - Workbook Version 3.0.4  Watch Demo
                  DDF - Workbook Version 3.0.3
                  DDF - Workbook Version 3.0.2  Watch Demo
                  DDF - Workbook Version 1.0     Watch Demo

      1.2. DDF - XML (Prerequisites: Java 1.6 or greater + TestNG API)
                  DDF - XML Version 3.0.3  
                  DDF - XML Version 3.0.2  Watch Demo
                  DDF - XML Version 3.0.1
                  DDF - XML Version 2.0     Watch Demo

      1.3. DDF - CSV (Prerequisites: Java 1.6 or greater + TestNG API)

                  DDF - CSV Version 3.0.3
                  DDF - CSV Version 3.0.2  Watch Demo
                  DDF - CSV Version 3.0.1
                  DDF - CSV Version 3.0     Watch Demo

2. DDF (Data Driven Framework)
    Prerequisite: Requires Java (doesn't require TestNG API).

     2.1 DDF - Workbook (Prerequisites: Java 1.6 or greater + POI API)
                  DDF - Workbook Version 4.1  Watch Demo
                  DDF - Workbook Version 4.0  Watch Demo
         
      2.2. DDF - XML (Prerequisites: Java 1.6 or greater)
                  DDF - XML Version 4.0  Watch Demo
               
      2.3. DDF - CSV (Prerequisites: Java 1.6 or greater)
                  DDF - CSV Version 4.0  Watch Demo
                  

We are in the process of developing few more frame works. Stay tuned to our blog to get new updates.

Saturday, 7 June 2014

Java(Help Links) - WebDriver Links


WebDriver Links

WebDriver:

1. Captcha can be automated or not ?.
    > Captcha having plain text with out image can be automated.
    > Captcha with image can't be automated.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/captcha-which-could-be-automated.html

2. If any textbox is disabled then how to send the value to that box ?
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/if-any-textbox-is-disabled-then-how-to.html

3. How to find the broken link in a web page.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-to-find-broken-link-in-web-page.html

4. Launch Chrome Browser Using WebDriver
Reference: http://www.abodeqa.com/2013/02/21/launch-chrome-browser-using-webdriver/

5. Capture Network traffic using webdriver.
Reference: http://www.seleniumtests.com/2012/10/capture-network-traffic-using-webdriver.html

6. WebDriver Tips & Tricks
Reference: https://code.google.com/p/selenium/wiki/TipsAndTricks

7. Capture Screenshot of Web Page In Selenium WebDriver
Reference: http://www.abodeqa.com/2013/02/26/capture-screenshot-of-web-page-in-selenium-webdriver/


8. Webdriver tutorial
Reference:
http://www.toolsqa.com/

9. Webdriver examples/demos
Reference:
http://hmsinghselenium.blogspot.in/

10. How to upload a file in Selenium Webdriver
Reference:  http://www.learn-automation.com/2014/05/how-to-upload-file-in-selenium-webdriver.html

11. Handle proxy in Selenium Webdriver
http://www.learn-automation.com/2014/08/how-to-handle-proxy-setting-in-selenium.html

12. The Best Free Selenium Tutorials to Learn and Master Selenium Online – Selenium Tutorial #1
http://www.softwaretestinghelp.com/selenium-tutorial-1/

13. Run tests on specific Firefox version | Selenium
http://seleniumworks.blogspot.in/2014/03/run-tests-on-specific-firefox-version.html

14. Integrate JS with Selenium | Basics
http://seleniumworks.blogspot.in/2014/01/integrate-js-with-selenium-basics.html

15. EventFiringWebDriver | AbstractWebDriverEventListener
http://seleniumworks.blogspot.in/2014/02/eventfiringwebdriver.html

16. E-mail Selenium Test Reports
http://seleniumworks.blogspot.in/2014/02/e-mail-selenium-test-reports.html

17. Switch to User Agent - Firefox | Chrome
http://seleniumworks.blogspot.in/2013/10/switch-to-user-agent-firefox.html


18. Video Record Selenium Tests
http://seleniumworks.blogspot.in/2013/10/video-record-selenium-tests.html

19. How to do XPath validation ?    
http://seleniumworks.blogspot.in/2013/09/how-to-do-xpath-validation.html

20. Page Scroll using Selenium WebDriver
http://seleniumworks.blogspot.in/2013/08/page-scroll-using-selenium-webdriver.html


21. Selenium tutorials for beginners
http://seleniumeasy.com/selenium-tutorials

22. Password Encryptor for Webdriver
https://automationbycharan.wordpress.com/2015/05/31/password-encryptor-for-webdriver/



23. Advanced Selenium Avoid PageLoad
https://automationbycharan.wordpress.com/2015/05/31/advanced-selenium-x-path/

24. Set Temporary Proxy
https://automationbycharan.wordpress.com/2015/05/31/set-temporary-proxy/


JavascriptExecutor 
http://www.swtestacademy.com/selenium-11-javascriptexecutor/
http://www.seleniumbix.com/#!javascriptexecutor-in-selenium/cn84

Handling Browser Tabs:
1. How to close new tab or How to open new tab and close it ?
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-to-close-new-tab-or-how-to-open-new.html

2. How to download pdf file in desired location without using AutoIt tool.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-to-download-pdf-file-in-desired.html

3. How to open a link in new tab.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-to-open-link-in-new-tab_21.html


Handling mouse events:
1. How to save image by right click on that and save as image.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-to-save-image-by-right-click-on.html

2. How to move the pointer as well while moving the cursor or How to use Robot class.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-to-move-pointer-as-well-while.html

3. How to scroll down and up in any web page.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-to-scroll-down-and-up-in-any-web.html


Handling browser addons:
1. How to open browser with Addons using WebDriver
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-to-open-browser-with-add-ons-using.html


2 Adding add-on in Firefox and Chrome using WebDriver
Reference: http://www.abodeqa.com/2013/08/24/adding-add-on-in-firefox-and-chrome-using-webdriver/

Miscellaneous: 
1. Email WebDriver results/report.
Reference: http://www.abodeqa.com/2013/06/19/email-your-failing-selenium-webdriver-scripts-stack-trace-to-your-email-id/

2. JQuery Selector fundametals
Reference: http://www.abodeqa.com/2013/05/09/jquery-selector-fundametals/

3. Handling Windows Processes Through WebDriver
Reference: http://www.abodeqa.com/2013/03/05/handling-windows-processes-through-webdriver/


4. Advance Selenium Reporting with Screenshots
Reference: http://learn-automation.com/advance-selenium-reporting-with-screenshots/

Authentication:
1. How do you handle https website in selenium ?
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/how-do-you-handle-https-website-in.html

2. Unexpected error launching Internet Explorer. Protected Mode must be set to the same value
Reference: http://www.abodeqa.com/2013/05/25/unexpected-error-launching-internet-explorer-protected-mode-must-be-set-to-the-same-value/

3. Accepting Untrusted SSL certificate in WebDriver for Chrome and Firefox Browser
Reference: 

http://www.abodeqa.com/2013/05/03/accepting-untrusted-ssl-certificate-in-webdriver-for-chrome-and-firefox-browser/
http://www.learn-automation.com/2014/09/how-to-handle-untrusted-ssl-certificate.html

http://www.seleniumbix.com/#!handle-ssl-certificate-issues-in-seleniu/cxor

4. Handle Authentication Window using AutoIT and Sikuli Reference: http://selenium4.blogspot.in/2014/12/handle-authentication-window-with.html 

Webdriver Troubleshooting:
1. Java Webdriver control hangs, while downloading file in InternetExplorer-9
Reference: 
http://automation-home.blogspot.in/2014/08/IE9-download-file-wd-control-hangs.html

2. How to handle proxy setting in Selenium Webdriv
Reference: 
http://www.learn-automation.com/2014/08/how-to-handle-proxy-setting-in-selenium.html

3. How to execute testcases in remote machine using Grid 2.0
Reference: 
http://www.learn-automation.com/2014/06/how-to-execute-testcases-in-remote.html

4. Challenges with IE browser in Selenium Webdriver
Reference:
http://learn-automation.com/challenges-with-ie-browser-in-selenium-webdriver/

Mobile Driver:
1 Windows Phone WebDriver
Reference: https://winphonewebdriver.codeplex.com/

2 Mobile WebDriver
Reference: http://seleniumhq.wordpress.com/2013/08/28/mobile-webdriver/


3. Appium Tutorial - safari launcher on Real IOS / IPhone Device part 1 
Reference: https://www.youtube.com/watch?v=RHZgGwD6Rh0&feature=youtu.be&a

4. Appium Tutorial-IOS Configuration on mac
Reference: https://www.youtube.com/watch?v=BULjgsTpw2c&feature=youtu.be

5. Appium Tutorials
Reference: http://software-testing-tutorials-automation.blogspot.in/2015/10/appium-tutorials.html

Selenium Builder :
Reference:  
http://www.slideshare.net/seleniumconf/introducing-selenium-builder-the-future-of-test-development
http://www.slideshare.net/Zarkonnen/selenium-builder

Webdriver-Flash :
1. How to automate flash (Youtube) in Selenium Webdriver
Reference: 
http://www.learn-automation.com/2014/11/how-to-automate-flash-youtube-in.html

 Webdriver Listeners:
Reference:
www.learn-automation.com/2014/11/what-is-webdriver-listeners.html

Cuypu - Advanced wrapper for Selenium
Coypu is an advanced wrapper for Selenium, which removes some of the pain that we are facing with current automation with Selenium.
Coypu supports browser automation in .Net to help make tests readable, robust, fast to write and less tightly coupled to the UI.
https://github.com/featurist/coypu

Video Demo's
Part1- https://www.youtube.com/watch?v=qnK0CJsPhL4
Part2- https://www.youtube.com/watch?v=sEaazy4enzw

 XPath
XPath Axes
1. XPath axes with good examples for beginners.
    http://www.xmlplease.com/axis

Miscellaneous (links)

1. Automation Test Life Cycle (ATLC)
Reference:
http://selenium-makeiteasy.blogspot.in/2014/05/automation-test-life-cycle-atlc.html
http://qainsights.com/test-automation-life-cycle/

2. Running TestCases on cloud
Reference: http://www.learn-automation.com/2014/06/running-testcases-on-cloud.html

3. Keyboard shortcuts
Reference: http://windows.microsoft.com/en-in/windows/keyboard-shortcuts#keyboard-shortcuts=windows-7

4. Database Testing (MS access) using Selenium
Reference: http://www.learn-automation.com/2014/05/database-testing-ms-access-using.html

5. Generate XSLT Report(Advanced HTML Report) in Selenium
Reference: http://www.learn-automation.com/2014/06/generate-xslt-reportadvanced-html.html

6. Mobile Application Testing - Emulators v/s Simulators & Real Mobile Device - Comparison & Usage

7. Running Testcases using Jenkins.
Getting Started with Selenium GRID
Reference: http://way2automationtesting.blogspot.in/2014/03/getting-started-with-selenium-grid.html

9. Automation Testing Utilities.
Reference: http://automationtestingutilities.blogspot.in/

10. Top 30 Nmap Command Examples For Sys/Network Admins.
Reference: http://www.cyberciti.biz/networking/nmap-command-examples-tutorials/

11. How to create log file using Log4j in Selenium Webdriver
Reference: 
http://www.toolsqa.com/log4j-logging/
http://www.learn-automation.com/2014/07/how-to-create-log-file-using-log4j-in.html

12. Selenium 2.0 WebDriver with Visual Studio, C#, & IE – Getting Started
Reference: 
http://www.joecolantonio.com/2012/07/31/getting-started-using-selenium-2-0-webdriver-for-ie-in-visual-studio-c/

13.Import xlsx sheet to uft/qtp datatable.
Reference: http://quicktestprotech.blogspot.in/2014/08/import-xlsx-sheet-to-uftqtp-datatable.html

14. Keyword Driven Framework - using Java & Webdriver
Reference:  http://www.toolsqa.com/selenium-webdriver/keyword-driven-framework/introduction/

15. Creating Keyword & Hybrid Frameworks with Selenium
Reference: http://www.guru99.com/creating-keyword-hybrid-frameworks-with-selenium.html

16. Running Testcases using Jenkins
Reference: http://www.learn-automation.com/2014/06/running-testcases-using-jenkins.html

17. How to create log file using Log4j in Selenium Webdriver
Reference: http://www.learn-automation.com/2014/07/how-to-create-log-file-using-log4j-in.html 

18. How to Upload File using autoit.
Reference: http://www.seleniumgyan.com/2014/11/how-to-upload-file-using-autoit.html

19.Evolution of openscript
Reference: www.testingtools.co/automation/evolution-of-openscript

20. Mock Testing using PowerMock (With JUnit and Mockito)
Reference: http://howtodoinjava.com/2014/12/03/mock-testing-using-powermock-with-junit-and-mockito/

21. Jodd Swing Spy
Reference: http://jodd.org/doc/swingspy.html

22. Swing Demo Applications
Reference:
i. http://securetechnologies.com/CCAT/SwingDemoApplet.html (Swing jar in browser)
ii. www.miglayout.com/swingdemoapp.jnlp --> Jnlp(downloaded and executed)
   http://docs.oracle.com/javase/tutorial/uiswing/examples/components/ --> Jnlp
iii. Embedding JNLP File in Applet Tag(browser)
http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/embeddingJNLPFileInWebPage.html
http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/examples/dist/depl_EmbeddingJNLPInWebPage/AppletPage.html  

23. Advance Selenium Reporting with Screenshots
http://learn-automation.com/advance-selenium-reporting-with-screenshots/

24. Headless browser testing with CasperJS
http://learn-automation.com/headless-browser-testing-with-casperjs/

25. What is Defect / Bug Life Cycle ? A Movie
http://www.testnbug.com/2015/05/what-is-defect-bug-life-cycle-a-movie/

26. Javascript
https://codek.tv/6394
https://codek.tv/3481
     5 JavaScript Tricks
http://www.devstrend.com/5-javascript-tricks-need-know/

27. ExtentReports
http://relevantcodes.com/extentreports-for-selenium/

28. Python- Python video tutorial for beginners.
https://www.youtube.com/watch?v=cIH6TjK0H5s&list=PLqaJe1KXgdP0UyO_JptIwn8GccfL9QANl

29. Python- Selenium Page Object Model
http://www.seleniumframework.com/python-frameworks/modeling-page-objects/

30. Python - Complete Hybrid Framework Implementation
http://www.seleniumframework.com/python-frameworks/complete-the-workflow/ 

31. Python - Robot Framework
http://www.swtestacademy.com/getting-started-robotframework/
https://www.youtube.com/watch?v=KNjZ-eR00GA&list=PL6tu16kXT9Pr8HFB2Cmne0RxwcyM6qB8e

32. 110+ educational links for experts to beginners
https://python.zeef.com/luis.solis

Locators links

1. CSS Selector
Reference: http://saucelabs.com/resources/selenium/css-selectors

2.  CSS & XPATH
Reference: http://plasmasturm.org/log/444/

  Installation link

1. How to Integrate Maven with Selenium
Reference: http://www.learn-automation.com/2014/05/how-to-create-maven-project-and.html

2. Proxy Settings for Maven | Eclipse
http://seleniumworks.blogspot.in/2013/10/proxy-settings-for-maven-eclipse.html

3. Integrate Automation framework with Build using Jenkins.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/integrate-automation-framework-with.html

4. Configuring Android WebDriver in Eclipse
Reference: http://www.abodeqa.com/2013/05/08/configuring-android-webdriver-in-eclipse/

5. Using Selenium with JMeter's WebDriver Sampler
Reference: http://blazemeter.com/blog/jmeter-webdriver-sampler

6. SVN(Sub Version) -Test Script repository.
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/svnsub-version-test-script-repository.html

7. How to configure Subversion(GIT) with Selenium
Reference: 
http://www.learn-automation.com/2014/05/how-to-configure-subversiongit-with.html
http://www.learn-automation.com/2014/07/github-for-beginners-part-1.html

8. Downloading and Configuring Selenium Webdriver in Eclipse with Testng plugin installation
Reference: http://www.abodeqa.com/2013/01/24/downloading-and-configuring-selenium-webdriver-in-eclipse-with-testng-plugin-installation/

10. Selenium 2.0 WebDriver – How to Get Started with Eclipse, Java & IE
Reference: http://www.joecolantonio.com/2012/11/30/selenium-2-0-webdriver-how-to-get-started-with-eclipse-java-ie/

11. ANT Build Tool
Reference: http://selenium-makeiteasy.blogspot.in/2014/05/ant.html

12. How to execute testcases in remote machine using Grid 2.0
Reference: 
http://www.learn-automation.com/2014/06/how-to-execute-testcases-in-remote.html
http://seleniumworks.blogspot.in/2013/01/selenium-grid-with-webdriver.html

13. Getting Started with Robotium – The Most Popular Android Application UI Testing Tool
Reference: http://www.softwaretestinghelp.com/robotium-tutorial-android-application-ui-testing-tool/

14. Generate XSLT Report(Advanced HTML Report) in Selenium
Reference: http://www.learn-automation.com/2014/06/generate-xslt-reportadvanced-html.html

15. Selenium Integration with FitNesse Acceptance testing framework
Reference: http://assertselenium.com/2012/11/10/selenium-fitnesse/

16. Setup a Selenium WebDriver Project in Eclipse
Reference: http://assertselenium.com/2012/10/28/how-to-setup-a-webdriver-project-in-eclipse/

17. Automatically trigger email with reports after execution
Reference: http://assertselenium.com/2012/11/13/emailable-reports-for-selenium-scripts/

18. Installation of SoapUI plugin into Eclipse.
Reference: http://roadtoautomation.blogspot.in/2013/08/road-to-installation-of-soapui-plugin.html

19. Jmeter - procedure to create first test script for the beginners
Reference: http://roadtoautomation.blogspot.in/2013/04/road-to-jmeter-procedure-to-create.html

20. Appium Tutorial-IOS Configuration on mac
Reference: https://www.youtube.com/watch?v=BULjgsTpw2c&feature=youtu.be 

21. Install GIT on Windows
http://www.seleniumbix.com/#!install-git/cuze