Forum Discussion

Re: Is there a way to fail the test by matching 2 strings?

What if I like to make the test passed in certain condition? Let's say I want to see a log like this in Script Test Log:

 

3 Replies

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 3 rankChampion Level 3

    Add else to your if statement and add log message to it.
    IF variables are not equal
      Log error
      Stop 
    Else
      Log message

  • JDR2500's avatar
    JDR2500
    Frequent Contributor

    In MW_Didata's fine example substitute Log.Checkpoint for Log.Message in the second line and you'll get the green passing message you want when the strings match.