Forum Discussion
Hi,
LLP object in TestComplete is first that comes to my mind.
I hope that the following approach should work:
-- Prepare the target UI layout to be in a certain defined state. This may include setting the size of the tested application, positioning the window to a certain place on the screen, etc.;
-- Use the LLP object to draw the objects that you need. Considering defined fixed initial layout, the drawing can be 'blind', i.e. when the mouse is moved from one hardcoded point to another, or 'semi-blind', i.e. when test code uses start coordinates of the target canvas object and its size and adjusts mouse movement according to them;
-- Then you may use either image comparison provided by TestComplete to check if mouse actions completed with the expected result, or some third-party image comparison service (e.g. like the one provided by Applitools) to check the same but, maybe, with more flexible settings. Alternatively, you may not check the resulted image and do some backend verification. For example, you may check that certain expected records were generated in the database and this will mean that executed actions succeeded.
- srini_molleti6 years agoNew Contributor
Hi Alex,
Thank you very much for your reply. I am not sure this approach can be used for my application. My current application is not designed using Canvas, but using SVG elements and SmartBear replied saying they are not supporting SVG currently.
Please help me in this case.
Thanks,
Srini
- AlexKaras6 years agoChampion Level 3
Hi Srini,
Absence of support for SVG or canvas means that TestComplete cannot get their internals (e.g. list of displayed graphical elements).
This means that it is not possible to use TestComplete's object model provided via Object Browser to manipulate these elements. With the absence of direct support, I see only two other options possible:
a) Use the approach that I already described. I.e. prepare the tested graphical layout so it is always in the stable, known and predictable state, and use coordinate-based actions to alter it. Then use image comparison to verify that the executed actions resulted in the expected result;
b) Assuming, that the displayed graphic is data-bound, you may emulate the actions by getting/setting the data on the back-end and either compare them with expected values, or, again, do image comparison after data manipulation to verify that manipulation resulted in correct expected data persisted to the storage.
Related Content
Recent Discussions
- 2 days agovladd1