|
View previous topic :: View next topic |
Author |
Message |
sebirello
Joined: 02 Nov 2016 Posts: 25
|
Posted: Mon Jun 26, 2017 4:03 am Post subject: URL - Request Test - plain text, expression |
|
|
Hi,
can anybody tell me how to setup a URL - Request Test, which tests if the following is available in plain text:
https://.../.../.../... : OK
...@https://.../.../.../... : OK
...@https://.../.../.../... : OK
...@https://.../.../.../... : OK
...@https://.../.../.../... : OK
Or a better way I guess would be an expression which checks if the text contains anything other than OK? So it could be, that the result is for example "failed" or "bad".
With "Check contents" it is only possible to type in 126 characters.
Thank you!
Kind Regards,
Sebastian |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Jun 26, 2017 7:39 am Post subject: |
|
|
Quote: | Or a better way I guess would be an expression which checks if the text contains anything other than OK |
You have "https:/..." in the text, right?
So, if you check for anything but Ok, it will find "https:/...".
If you need to check for some errors (more than one possible error message), use expression mode and expression like not ('Error1' or 'Error2')"
Regards
Alex |
|
Back to top |
|
|
sebirello
Joined: 02 Nov 2016 Posts: 25
|
Posted: Mon Jun 26, 2017 7:47 am Post subject: |
|
|
Thanks Alex, I'll try the expression:
not "('failed' or 'error')"
Kind Regards,
Sebastian |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|