Protractor and node.js automation suite for Crimson Login Page: Difference between revisions
Jump to navigation
Jump to search
Protractor and node.js automation suite for Crimson Login Page (view source)
Revision as of 01:57, 28 November 2016
, 28 November 2016no edit summary
(Created page with "<< return to main page I wanted to have a practice...") |
No edit summary |
||
Line 1: | Line 1: | ||
[[http://dirksonline.net/cvwiki/index.php?title=Curriculum_Vitae_-_Vincent_Dirks#New_things_I.27m_learning_and_trying_out | [[http://dirksonline.net/cvwiki/index.php?title=Curriculum_Vitae_-_Vincent_Dirks#New_things_I.27m_learning_and_trying_out << return to main page]] | ||
I wanted to have a practice at writing a Protractor automation suite using node.js and the jasmine test framework. I decided to use these when I was asked to automate some checks on the [https://crimson-accounts-staging.herokuapp.com/login Crimson Test Login Page] | I wanted to have a practice at writing a Protractor automation suite using node.js and the jasmine test framework. I decided to use these when I was asked to automate some checks on the [https://crimson-accounts-staging.herokuapp.com/login Crimson Test Login Page] | ||
Line 9: | Line 9: | ||
To begin with I did have some trouble waiting in the code for the new page to load before checking the asserts but with a bit more googling managed to work it out. | To begin with I did have some trouble waiting in the code for the new page to load before checking the asserts but with a bit more googling managed to work it out. | ||
< | <pre> | ||
//Wait for the url to change | //Wait for the url to change | ||
var currentUrl; | var currentUrl; | ||
Line 39: | Line 39: | ||
}); | }); | ||
}); | }); | ||
</ | </pre> | ||
:The .then() functions still confuse me a bit, especially when passing parameters into the then method. | |||
The .then() functions still confuse me a bit, especially when passing parameters into the then method. | |||
---- | ---- | ||
The suite performs the following checks | The suite performs the following checks |