Completed Cadasta User Accounts Test Cases!

Manorama Perera
1 min readJan 7, 2017

--

I just completed the Selenium UI test cases related to User Accounts in Cadasta.

Altogether there are 17 test cases covering all the happy paths and sad paths of,

* User Registration

* User Login

* User Profile Update

* Form Validations

Completing the UI tests is not just writing the selenium tests. It includes restoring the system to its previous state after running each test case. Otherwise that’ll be messed up.

For example, when writing the above test cases first I had to write login functionality for several test cases. Among them, there are some test cases which do testing username, password changes. I had to be really careful when implementing those, because if I leave the system just after running the test case, I won’t be able to run the set of test cases again successfully as the first run changes username, password and everything.

So in the tearDown method of those test cases I always wrote the restoring code. When I failed to write those I had to clean the Cadasta DB as I wrote in Cleaning the cadasta database in the local setup.

You can find the implementation of the above 17 test cases here.

--

--

No responses yet