Can't run passed with http status 500

230 views
Skip to first unread message

Aphirak Phothisa

unread,
May 31, 2021, 5:11:22 AM5/31/21
to robotframework-users
I do the API testing but when I run on case fail on "500 server error "  the robot run fail Actually, this case should be passed and I can check with HTTP status equal to 500.
Can someone help me to do this?

image.png

Hélio Guilherme

unread,
May 31, 2021, 5:23:23 AM5/31/21
to robotframework-users
Maybe you need to combine with Run Keyword and Expect Error.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/CA%2Bqya7SR6W%3De2wpQog%2B%2Bp0Y6bW5rDFx5GA2hooz8TZCDYme3wQ%40mail.gmail.com.

Dave Amies

unread,
May 31, 2021, 9:20:40 PM5/31/21
to robotframework-users
Perhaps you want to use the "expected_status" option for Post On Session?

Dave.

Aphirak Phothisa

unread,
Jun 1, 2021, 3:20:26 AM6/1/21
to dami...@gmail.com, robotframework-users
Thanks guys 

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages