Testing program on Delphi
When you start playback test (with the program on Delphi), and you try to enter data into a cell of the program, a message appears: "Failed to enter text in the edit box, sine it is read-only". The test is stopped because of this error. When the test is recorded in TC, data input to the cell is held normally. In another system (HP Unified Functional Testing) automated testing software, and you try to enter data into a cell Delphi program playback test runs without errors.
How to resolve the error, to play test passed with no errors?
Where in TestCompleteDemo can I evaluate Web testing? I can’t find this option in Demo. I want evaluate testing some web-sites for example.
Hi,
Out of the box TestComplete provides two options to enter the data - either by direct assignment (using the Set method of the given field/property) via the .SetText method or by emulating keyboard entry by the end-user via the .Keys method. The option used during recording is specified via the Tools | Options | Engines | Recording | Record Text Input Into Simple Editors As dialog. See TestComplete's help for extended description, but in the nutshell, the former method (.SetText) is faster and more reliable (as it excludes potential problems with the incorrect input focus). However, as basically it uses a call to the internal method of the tested application, it might not always work as expected because of implementation specifics of the given tested application. For example, the Set method in the tested application might be specified as a read-only for external applications, or the tested application might expect that the data are entered only via keyboard and thus rely on the OnKeyPress method to perform some pre-processing of the entered data and handle the internal data buffer that contains actual data handled by the Get/Set methods.
To make the long story short: if your code uses calls to the .SetText method to enter data and errors-out at some point, try to replace the problematic call to .SetText with the call to .Keys method.
WebTesting: According to my knowledge, the evaluation version of TestComplete includes all possible functionality. In order to try web-testing, ensure that all prerequisites are met: http://support.smartbear.com/viewarticle/56244/.
Also I would recommend to go through http://support.smartbear.com/screencasts/testcomplete/ - there are a lot of great screencasts there that should help to get the ideas behind TestComplete and provide with the input on how to create a reliable and cross-browser tests.