IF condition is getting failed ..solution plz

51 Views Asked by At
  • eval if (success == 'Data1') karate.call('test.feature')

this is getting failed displaying error message as Expected ; but found { }

Tried below :

  • eval if (success == 'Data1') karate.call('test.feature');
1

There are 1 best solutions below

0
Srinivasu Kaki On

Changing your step to below would work

* eval (success == 'Data1') ? karate.call('test.feature') : karate.call('fail.feature')