Coder Social home page Coder Social logo

codewithmmak / api-testing-protractor-typescript Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 5.0 206 KB

This is sample REST API Automation framework designed using request npm, Protractor, Jasmine, and TypeScript

License: MIT License

TypeScript 100.00%
request protractor typescript nodejs api-testing-framework

api-testing-protractor-typescript's Introduction

API Testing using Request node module, Protractor, Jasmine and Typescript Setup Guide

This API Test Automation framework is designed using Request node module, Protractor, Jasmine and TypeScript

Framework Structure

├───images                          # This folder contains sample report image
├───temp                            # This folder contains JS file which are generated after compiling TypeScript files
├───test-results                    # This folder contains test result (includes html report and screenshots)
└───test-suites                     # This folder contains spec/test files

To Get Started

Pre-requisites

  • Download and install Chrome or Firefox browser.
  • Download and install Node.js
  • Optional - Download and install any Text Editor like Visual Code/Sublime/Brackets

Setup Scripts

  • Clone the repository into a folder
  • Go to Project root directory and install Dependency: npm install
  • All the dependencies from package.json and ambient typings would be installed in node_modules folder.

How to write Test

  • Add new spec under test-suite folder
  • Name the file as .spec.ts (e.g. get-user.spec.ts)

How to Run Test

  • Run complete Test Suite: npm test

How to Update local npm packages

  • Go to Project root directory and run command: npm update

Sample Test Results

API Testing using Protractor, Jasmine and Typescript Test Results

API Testing using Protractor, Jasmine and Typescript Console Test Results

💭 Checkout the blogs related to Software Testing on my website

api-testing-protractor-typescript's People

Contributors

codewithmmak avatar dependabot[bot] avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

api-testing-protractor-typescript's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • jasmine ^4.5.0
  • protractor ^7.0.0
  • protractor-beautiful-reporter ^1.3.6
  • request ^2.88.2
  • rimraf ^5.0.0
  • typescript ^5.0.0
  • @types/jasmine ^4.3.1
  • @types/node ^18.11.13
  • npm-check-updates ^16.5.6
  • tslint ^5.20.1
  • yargs-parser ^21.1.1

  • Check this box to trigger a request for Renovate to run again on this repository

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.