in this project web based application that reads Rss feeds.
- major role of present software field is testing technique,
- and easy way to tested all testing cases.
css fonts Js jasmine/spec/feedreader.js index.html README.md
- Downloaded the project git-hub repository.(https://github.com/udacity/frontend-nanodegree-feedreader)
- Extract the Zip file
- opened index.html file analysed all the classes,elements and their puropse.
Testcase-1: test to make sure that the allFeeds variable has been defined and that it is not empty. Initially Test case 'are defined' for Test Suit 'RSS Feeds' .
Testcase-2: test case 'url is defined or not' by using while loop for Test Suite 'RSS Feeds'. Evaluated test case 'url defined' by using do-while loop for Test Suite 'RSS Feeds'.
Testcase-3: ensures it has a name defined and that the name is not empty. Evaluated test case 'name defined' by using do-while loop for Test Suite 'RSS Feeds'.
Testcase-4: Evaluated test case 'hidden by default' for test suite 'The menu'.
Testcase-5: Evaluated test case 'menu visibility' for test suite 'The menu'. This test case will work when we clicked on menu button, It will show the menu list. Again when we clicked on it menu list will hide.
Testcase-6: Evaluated test case 'entry element ' for test Suite 'Initial Entries'.
Testcase-7: test suite 'New Feed Selection' with test case 'if feeds are different'.This will check difference between oldfeed and testfeed url changed or not.
We have to add extension on Chrome Browser Web-Server 200 ok Web Server Link
- select root folder that will be access web server
- choose folder
- if you want change port edit option is there we can change otherwise run default Web Server Url http://127.0.0.1.8887
- select current directory
- and open index.html file
- url should be like this 127.0.0.1.8887/index.html
- tests wrote in feedreader.js file
- test results appears on bottom of the index.html page
- green color indicates tests are passed.
- red color indicates tests are failed
- DOM Manipulations is used to call the html elements in JavaScript file.
-
JQuery is JavaScript library.
-
HTML document will traverse ,Manipulates the event handling.
-
i used JQuery in feedreader.js file.
-
example for JQuery:
- -$('button').html('next step')
-
also used Arrow Function Expressions.
-
()=>{
}
-
By using Jasmine I checked whether the testing suites and spec are validated or not. Jasmine is JavaScript tool it is used testing process. More Information about Jasmine tool Click on below link Jasmine