Giter Club home page Giter Club logo

tv-programme-testing's Introduction

tv-programme-testing

This is a test task for one of the companies. This task includes work with web services, xml/json parsing and it's verifying

The task was as following: Please, automate the following test case:

You have XML-file with tv programme for one of the channels available by GET http://www.vsetv.com/export/megogo/epg/3.xml You also have JSON-file with currently running show on the same channel available by GET http://epg.megogo.net/channel/now?external_id=295

Your task:

  1. Verify that show's start/stop time of the currently running show is the same as in tv programme
  2. Verify that show's genre_id of the currently running show is the same as in tv programme
  3. Verify that show's year and title of the currently running show is the same as in tv programme
  4. Make project structure expandable

Technologies used

  • Java 8
  • Apache HttpComponents
  • Google Gson
  • TestNG

How to install and run

This is Java Maven-based project so you have to have JRE and Maven installed on your pc and then:

  1. Clone the project
  2. Execute 'mvn test' in a command line, this will launch the tests

Note

The test is commonly failing because of the show data in XML either JSON is bad and it's missing some of the attributes that are checked by the test, so don't be afraid, just check the console output and then look into the log file at the root of the project - it contains previosly tested show's data so you can find out what went wrong.

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.