3 Jan 2009 12:22
Re: how to "assert" a whole html page with some dynamic content
sebb <sebbaz <at> gmail.com>
2009-01-03 11:22:51 GMT
2009-01-03 11:22:51 GMT
On 31/12/2008, yaroslav1 <slavko_h <at> yahoo.com> wrote: > > Hi, > > First for all - Happy New Year everyboby! > > Here is a problem which I cannot solve a few days... :( > > I'm trying to check a whole html page with some dynamic content. That is going to be tricky and expensive - is it really necessary to check everything? I suggest you just check a few important parts of the page in the test itself. If you really want to check the full page, use the Save Responses to a File element to create a file with the full details and compare that separately after the test has finished. > My approach is like: > 1) make http-request; > 2) by using regular-expression-extractor to create those variables (related > to the dynamic content); > 3) usu response-assertion (with selected "Text Response" and "Equal"), into > "patterns to test" - copy-paste the full page from a response of the step > 1), and to replace the dynamic content by variables from > regular-expression-extractors. > But this is does not work as expected. Probably because of line endings.(Continue reading)
RSS Feed