Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Silktest Question 14: How to test dynamic text in web based application?

0
Posted

Silktest Question 14: How to test dynamic text in web based application?

0

I’m using Silk Test for testing a web based application. When I fill the form out and submit, the page shows a text message along with the username in the next page, for example “Successfully created test account for user John Winrunner”. The message changes when different username is given, for example “Successfully created test account for user Andrew SilkTest”. How to verify this dynamic text? There must be a particular set of messages that you might be getting. Here are some few advices that you might want to use depending on your testing requirements. 1) Use the index of the message and not the caption to declare it, since the caption keeps on changing non-uniquely. 2) Declare each message separately, and check for their existence. At a time only one should exist and you can proceed depending on what is to be done on the occurrence of the corresponding message. 3) Setting Agent Option OPT_VERIFY_UNIQUE to false temporarily through 4Test code.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123