We have a page which does a database search based on a name parameter. Can we test this with JBlitz ?
Yes. JBlitz could be used to effectively test that page. For example, if your page was called ‘dblookup.jsp’ and accepted a parameter with the name ‘search_term’, then you might specify the web page in JBlitz like this: /dblookup.jsp?search_term=%s Here, the ‘%s’ in the name-value value is dynamically substituted with a random string on each request of that page. The substitution is described here. As an additional example, say you had another parameter called ‘category’ which used values such as ‘cat0’, ‘cat1’ etc to specify the search category. You could test this page by specifying something like this: /dblookup.jsp?search_term=%s&category=cat%j Here the search term is randomly generated and the category is randomly switched between ‘cat0’, ‘cat1’ etc (%j chooses a number between 0 and 9 inclusive). More information on how to dynamically alter you query string is given here.
Related Questions
- On the Search Database page, why do I see a difference in the total number at the top of the page when comparing it to the total of the individual search criteria (e.g., Health Indicator)?
- We have a page which does a database search based on a name parameter. Can we test this with JBlitz ?
- Trying the database conncetion test in the test routine gives me a blank page! Any clues?