GithubHelp home page GithubHelp logo

reazp / medialets Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 29.21 MB

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.

Java 100.00%

medialets's Introduction

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 @ "[email protected]"

medialets's People

Contributors

reazp avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.