Forum Discussion

DKNP's avatar
DKNP
Occasional Contributor
8 years ago

Keyword Test: If then, calling a script and testing the response

Hi

 

I am currently implementing a keyword test and I am unable able to find a way around the following problem.

 

The test needs to call a script from within a If then statement and test the response for a true result within the same statement.

 

I have tried the various options available within the if then statement and I cannot find an answer. Either I am missing something or it's not possible.

 

Anyone have any solutions?

 

Many thanks

 

Peter Mitcham

 

 

 

1 Reply

  • baxatob's avatar
    baxatob
    Community Hero

    1. Your script should return some value, e.g. True or False.

    2. Use Last Operation Result as the value of your IF/THEN statement: