G
G
GlukFree2019-12-16 21:53:28
Software testing
GlukFree, 2019-12-16 21:53:28

Check if a field is filled (Testcomplited, JS)?

Hello
There is a form in the desktop application:
1) Text field X (parameters "Name", "Value", "Field ID")
2) Button "Submit"
3) Text field Y (parameters "Value", "Field ID")
B You can enter any text in the X field, click on the "Submit" button and the information will appear in the Y field. You
need to make an autotest script (JS) that checks that the information in the Y = X field after clicking the button. The TestComplete program
The problem is that the if (Y != X) Log.Message("field 1 is empty") condition works even when the values ​​in the fields are the same.
Perhaps I'm comparing the entire text fields, but only their "Value" parameters need to be compared.
I tried if (Y.Value != X.Value), it still writes "field 1 is not filled" to the logs, although visually the fields match 100%

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question