This question is locked. New answers and comments are not allowed.
I have a simple website with 3 input boxes and a button which works together with Knockout JS for databinding.
When I click on the button it will validate if the the input fields are not empty.
When they are empty the background color changes to red else they become white.
Now i want to test the following situation with a webtest:
- Insert a value in the first input field (e.q. test)
- hit the save button.
- The first input field is white and input 2 and 3 are red.
- Empty the first input field.
- Click the save button again.
- All the input fields are red.
When a make a webtest for this situation it does not work. Because the value that was databinded to knockout wasn't cleared and the lest step of the situation fails because the first input stays white.
I can not find a good solution to fix this.
Please see the attached test project and website that will show the behavior.
When I click on the button it will validate if the the input fields are not empty.
When they are empty the background color changes to red else they become white.
Now i want to test the following situation with a webtest:
- Insert a value in the first input field (e.q. test)
- hit the save button.
- The first input field is white and input 2 and 3 are red.
- Empty the first input field.
- Click the save button again.
- All the input fields are red.
When a make a webtest for this situation it does not work. Because the value that was databinded to knockout wasn't cleared and the lest step of the situation fails because the first input stays white.
I can not find a good solution to fix this.
Please see the attached test project and website that will show the behavior.