Quantcast
Channel: How to expect a failure in robot framework in Python? - Stack Overflow
Browsing index pages (3 articles)
↧

How to expect a failure in robot framework in Python?

We use robot framework at work to do some automated testing, and I need to add a few tests. This format is already in the repo, I cannot change anything drastically.I am using a keywords file that...

View Article


Answer by Catsunami for How to expect a failure in robot framework in Python?

I figured it out. You can just modify the test to expect an error as follows:Compare different numbers Run Keyword And Expect Error * I compare ${num_a} with ${num_b}Alternatively to look for a...

View Article


Answer by Dan Constantinescu for How to expect a failure in robot framework...

You can also expect a sub-string from the complete error by using this format:Compare different numbers Run Keyword And Expect Error *are not the same* I compare ${num_a} with ${num_b}Documentation:...

View Article
Browsing index pages (3 articles)


Latest Images