reazp / Medialets

This project is based on open sourch Selenium, Junit API and for testing poupose i used medialets public facing corp website for a sample test. This is completely free to use, you can download it, modify it. feel free to contact for any of your question.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Medialets

This project is about taking selef serve coustomer into Medialets system. User will be able to come to this site and fill out the form and data sent out to out Salesforce account to further validation and to distribute across our sales team.

This project is a UI form and some java script validation to make sure user enter valid data.

I used WebDriver Java API , Junit Test framework and Junit Assert API to finish this project.

All the libary will be found under lib directory of the project.

for further reference visit:

WebDriver Jar download and wiki page: http://code.google.com/p/selenium/downloads/list Junit assert API: http://junit.sourceforge.net/javadoc/org/junit/Assert.html

The whole project is designed based on MVC design pattern. Here all the locators of web Elements will work as a model, wrapped Webdriver api method will work like a controller, we have to pass test values to controller as weel to see the view which will be our test classes.

Enhancement that can be done:

Using any build tool like ant or maven we can easily generate a junit test report which can be viewed as a html file. Webdriver api has a method to take a screen shot for evry UI failed test which can be added to the project for taking screenshot for a failed test. This solution can be found on my blog: http://www.rpatwary.com/2012/08/25/taking-failed-test-screenshot-using-junit/ How to run the project:

These tests are Junit tests so use any popular IDE and make sure you have Junit plugin installed. All you have to do is to right click on the Test Class and select run as Junit test. Junit will do the rest. Happy Testing :)

***** Finally who ever is looking at this project , "This is not a private code! done by Medialets, i used their public faceing web application to design this test framework. All the validation are UI based which can be done on any public faceing web application using SeleniumRC or Webdriver API. Hope you are smart enough to understand what is "public faceing" mean. Enjoy!!"

Please feel free to contact me for further question @ "reaznyc@gmail.com"

About

This project is based on open sourch Selenium, Junit API and for testing poupose i used medialets public facing corp website for a sample test. This is completely free to use, you can download it, modify it. feel free to contact for any of your question.


Languages

Language:Java 100.0%