Code Monkey home page Code Monkey logo

webdriver_exercise's Introduction

webdriver_exercise

This exercise is implemented using junit and pageobject model.

All the tests extend BaseTest.java. This allows for initializations to be deferred to the BaseTest like the browser startup and tear down. The page objects inherit a base page object which also takes care of the global header, footer and menu parts.

A note about abstraction: It is debated if page objects should or should not make assertions/decisions. I have not used assertions in the page objects. This way, the "what is the code doing" is all in one place - the test, and the "how" portion is in the page object.

Reporting: The reporting and logging are inadequate in this rather bare bones implementation. In production quality tests, I'd include more details of what is going on in the test, test data that was used, and screenshots wherever appropriate. Also missing is a helper library with commonly used functions with timeout handling.

Environment: Maven has been used for dependency management (and build), and is a prerequisite to run the tests. Tests have been configured to run on firefox, so that's another prerequisite. Chrome and IE may also be used but would need the server executables, and the initialization code would need to be changed in test.java.BaseTest's setUp method.

Instructions to run: mvn test will execute the tests. mvn surefire-report:report-only will create a surefire report.

webdriver_exercise's People

Contributors

narayanans avatar

Watchers

 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.