testsigmahq / testsigma

A powerful open source test automation platform for Web Apps, Mobile Apps, and APIs. Build stable and reliable end-to-end tests @ DevOps speed.
https://testsigma.com
Apache License 2.0
915 stars 192 forks source link

[Bug]: The if condition is correct but the step was still failing. #263

Open Shashankh-Naik opened 1 year ago

Shashankh-Naik commented 1 year ago

Is there an existing issue for this?

What is the current behavior?

An error message shows success but the condition shows false. There was this issue where the condition was correct but still it was failing for some reason, The condition was if the url that I have provided starts with the given test-data if yes then it should execute a certain number of steps. Even the error message says that: "The TestData starts with the expected value"

What is the expected behavior?

If the condition is true then the test steps passed inside the if condition should be executed

Steps To Reproduce

1.Open any webpage with a long url.eg _[https://www.amazon.in/s?k=iphone&crid=LRYXLYA4RQN8&sprefix=iphone%2Caps%2C230&ref=nb_sb_noss_1]_

2.Add an if condition [If current url [starts with] https://www.amazon.in] 2.1 Perform certain action

Version

Testsigma Community Edition