Skip to content

Multiple Jasmine Test Cases for Feed Reader Web App. Completed as a project of Udacity Nanodegree program

Notifications You must be signed in to change notification settings

onejeet/feedreader-jasmine-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FeedReader Testing Using Jasmine Framework

Project: Feed Reader
Testing Framework: Jasmine 2.1.2
Developer: Jitendra Sharma
Project Of: Frontend Developer Nanodegree Course by Udacity

Project Summary

Feed Reader is a web-based application that reads RSS feeds via async call. As, a frontend developer the task is to write test cases for multiple funcationalities. Jasmine 2.1.2 testing framework has been used to test the web app for different scenarios.

How to Run the Web App Locally

Using GUI:

  1. Click "Clone in Desktop" / "Download ZIP".
  2. Open the folder.
  3. Open index.html on your preferred browser.
  4. There should be several test results at the bottom of the screen that says...
    "__ specs, __ failures"

Using TERMINAL:

  1. Pre-requisite : Install git.
  2. Clone this repo. Open your terminal or Git Bash and run
    git clone https://github.com/onejeet/feedreader_jasmineTesting.git
  3. Open the folder.
  4. Open index.html on your preferred browser.
  5. There should be several test results at the bottom of the screen that says...
    "__ specs, __ failures"

Tests Performed

RSS Feeds:

  • Feeds are defined.
    Web App Must have a well defined feed array. Array shoud not be empty.
  • Feed URLs are defined and are not empty.
    This will test the Feed's URL for being defined and not empty.
  • Feed names are defined and are not empty.
    This will test the Feed's Name for being a String, defined and not empty.

Menu Bar :

  • Menu Bar is hidden on page load.
    This will check for Menu's deafult behaviour when page loads. The menu shoud be hidden by default.
  • Menu Bar appears on first click.
  • Menu Bar disappears on second click.
    This will check for Menu's behaviour when the hamburger icon is clicked. First click should toggle the menu's visiblity to show. And the following second click should toggle visiblity to hidden.

Default Header Title:

  • Default Header Title should be 'Feeds'.
    Header Title must set to 'Feeds' before the async call loads the feed title.

Intial RSS Feed has Entries:

  • Intial feed must have entries.
    This Spec will check that default feed must have atleast one entry on the web page.

Feed Content Changes on Changing Feed :

  • New feed entries loads on changing feed. The Feed will automatically change to a random feed, other than the current. The Jasmine spec check for the content and will switch the page back to deafult feed.

Resources Used

About

Multiple Jasmine Test Cases for Feed Reader Web App. Completed as a project of Udacity Nanodegree program

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published