I have set the Response Assertion for multiple returned matches. It fails all the time. Any helps are greatly appreciated? See example below:
Example: I have 3 users login to the same website (randomly).
- user1 enters company 'AAA' and returns AAA company information
- user2 enters company 'BBB' and returns BBB company information.
- user3 enters company 'CCC'and returns CCC company information
In the Response Assertion and I selected Text Response and added Patterns to Test with Contains line1= "AAA", line2= "BBB' and line3="CCC".
Number of Threads(users) = 3.
After the execution, 2 of them fail all the time. Any helps on how to correct it?
Re: Response Assertion
If I'm correct you are using 3 threads. In every thread 1 user is entering his company. So basically every user is receiving only his company in the response.
At the moment of asserting the response for the first user, only company 'AAA' is returned. But the response assertion element is checking on all 3 companies.
I haven't tested this behaviour, but if I'm right I propose to look for a way to only check the company linked to the current user. If you are using a CSV file as data input for your users and companies, I would try to refer to the current company in the CSV file.