java - Testing user input with selenium -


i'm student that's employed university write tests verify if code can put production on website. basically, compare series of expected results return. 1 of areas i'm supposed test forms page has several fields user can input information, such as:

<div class="label">title: </div> <div class="html"><input id="title" size="40" name="title" type="text" value="" /></div> 

i need test various inputs might break code or cause problems. going make array of strings , test them i'm having trouble thinking of ideas of put inside it.

i told them think should put limit on size of string can input user, after i'm not sure i'd want check.

if recommend list of strings or commonly used in tests appreciate it.

here similar question answered here , might example string test input boxes

you can try sort of numeric input/text input combinations special chars.

or if want try css (cross site scripting) try strings like

<script type='text/javascript'>alert('pwnd');</script> 

read more on

cross site scripting


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -