2
Do you know of any web tools in Chrome or Firefox that auto-complete forms with random text for testing? I have a form of 35 fields and each time I submit for tests, I have to complete it again.
2
Do you know of any web tools in Chrome or Firefox that auto-complete forms with random text for testing? I have a form of 35 fields and each time I submit for tests, I have to complete it again.
4
You can do something by using Jfiller:
Or extensions to Chrome:
Or the solution of the function mentioned above, making a switch for input types and generating random data according to data type and validation rules.
3
Using jQuery to do a small function to fill all inputs when the page is ready:
<script>
$(document).ready( function() {
$("input").each(function(){ // percorre todos elementos "input" do documento
$(this).val("textoQualquerSoParaTestes"); // atribui o valor genérico para os campos
});
});
</script>
Unless you have to use values
specific, this should serve.
Browser other questions tagged javascript html form testing
You are not signed in. Login or sign up in order to post.
Assemble the completed form to test, and strip before publishing...
<input type="text" name="nome" value="Fulano de Tal">
or makes a function that creates a random string, or takes a value from an array...– Jader A. Wagner
Well remembered, I can leave the values set so you don’t have to fill all the time @Jader. You could elaborate a response with possible solutions, so I would give the best answer. Thank you.
– Marcos Vinicius