Giter Site home page Giter Site logo

searchrestaurantsproject's Introduction

Instructions

Repo for Search Restaurants Project

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

To run the project locally, please make sure to have the following downloaded and installed (if applicable):

* [Java 8 JDK](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) - any version of Java Standard Edition Development Kit 8
* [Eclipse](http://www.eclipse.org/downloads/eclipse-packages/) - any newer version of Eclipse IDE for Java EE Developers

Setup

1. Download and install Java JDK
2. Download and extract Eclipse
3. Eclipse: Window >> Preferences >> Java >> Installed JREs >> select installed JREs >> Edit >> make sure that JRE Home points to C:\Program Files\Java\jdk1.8.0_xxx\jre directory
4. Eclipse: Help >> Eclipse Marketplace >> type testng in Find search box >> click install button for TestNG for Eclipse
5. Download and extract [SearchRestaurantsProject repo](https://github.com/rayzhangqa/SearchRestaurantsProject)
6. Copy/Paste SearchRestaurantsProject folder to your Eclipse's workspace folder
7. Eclipse: File >> Import >> Existing Maven Projects >> Next >> Root Directory should be your Eclipse's workspace\SearchRestaurantsProject folder (for example: C:\Users\username\Desktop\workspace\SearchRestaurantsProject) >> Finish

Running the tests

1. To run individual test: Eclipse >> expand src/test/java within package explorer >> right mouse click any test (.java file) within any testCases package >> Run As >> TestNG Test
2. To run group of tests within the test suit: Eclipse >> expand resources within package explorer >> right mouse click testng.xml >> Run As >> TestNG Suite

Check the execution results

Check the report and execution results in "test-output" folder. 

###The introduction of SearchRestaurantsProject Automated Test Framework.

Language: Java.  
IDE: Eclipse
Framework Type: Behavioral-driven by using Page Object Model design pattern.
POM: We maintained a class for every web page. 
Packages: All page classes are under pageObjects package. All test related classes are under testCases package.
TestNG: Using TestNG for Assertions, Grouping and Parallel execution.
Maven: For build, execution, and dependency. Integrating the TestNG dependency in the POM.xml.
Version Control Tool: use github as a repository to store my test scripts.

searchrestaurantsproject's People

Contributors

rayzhangqa 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.