Disable form validation in browser
To disable validation in HTML5 use
<form method="post" action="/foo" novalidate>...</form>
Refer this question for more details.I think Junit can also help to test server side validations.
Use parameterized query to gain more security. (If SQL query is formed using user input).
EDIT :
You can set it in About:flags
Steps:
1. On your Google Chrome address bar, type “about:flags” (without the quote) and press Enter.
2.Scroll down the list until you see the option “Disable HTML5 interactive form validation”.
3.Click the enable link.
Check : http://wikibin.org/articles/google-chrome-about-and-chrome-urls.html
EDIT 2 :
Just came to know that About:flags is depreciated use Use chrome://flags instead. Thanks @Max.
This Chrome extension allows you to disable Chrome's built in HTML validation
HTML5 Form validation errors remover
It now requires novalidate="novalidate"
as below:
<Form novalidate="novalidate" onSubmit={this.handleSaveFormSubmit}>
Just novalidate
no longer works, and Chrome displays "Please fill out this field"