Main steps
Add execution permissions to the geckodriver library1:
When no parameters are passed, e.g. http://localhost:8800/insertTeacher, is opened it returns:
Status: OK (200),
HTML:
When valid parameters are passed, e.g. http://localhost:8800/insertTeacher?name=Tom&surname=Tom, it returns:
Status: OK
HTML:
When invalid parameters ar passed, e.g. http://localhost:8800/insertTeacher?name=&surname=, it returns:
HTTP status: Bad Request (400)
When no parameters are passed, e.g. http://localhost:8800/findTeacher, is opened it returns:
Status: OK,
HTML:
When parameters are passed, e.g. http://localhost:8800/findTeacher?name=Tom&surname=Tom, it returns:
Status OK
HTML:
where each returned Teacher object is shown in separate row of the table.
When no parameters are passed, e.g. http://localhost:8800/deleteTeacher, is opened it returns:
Status: OK,
HTML:
When valid parameter is passed, e.g. http://localhost:8800/deleteTeacher?id=5, it returns:
Status: OK
HTML:
When invalid parameters ar passed, e.g. http://localhost:8800/deleteTeacher?id=1, it returns:
HTTP status: Bad Request
For implementation:
For API testing:
For GUI testing: