Commented code vanishes in If-Else if Made changes on Manual Mode

There exist a scenario where in you have a commented code in Script mode.eg:

if (true) {

println('hii')

} else {

println('bye')



println('asdf')



/*println('bye')



println('bye')



println('asdf')*/



println('bye')



WebUI.acceptAlert()

}

If we make some changes in the manual mode of the same test case, then the commented test steps gets scattered i.e

if (true) {

println('hii') /*println('bye')



println('bye')



println('asdf')*/

} else {

println('bye')



println('asdf')



println('bye')



WebUI.acceptAlert()

}

This would create a havoc for the end user.

1 Like

Confirmed.

I noticed something very similar in my early days using KS. Pretty soon i stopped using “Manual” view and then forgot about the issue and failed to report the bug.

@KMS: There must be (or needs) to be a flag that once “Script” view has been edited, the code prettifier (which I assume is the issue) should not be used. Losing user entered data (code in this case) is a category A1 critical issue.

Thanks!