Commit Graph

52 Commits

Author SHA1 Message Date
Daniel Zaoui 3dd58276a2 Add EET for new Exactness data types 2018-05-06 22:53:30 +03:00
Daniel Zaoui bea26c676e Inspect: introduce a scenario visualizer and compare tool
This replaces the existing exactness_helper. A GUI has been added:
- Compare images
- Compare scenarios
2018-05-06 22:53:30 +03:00
Daniel Zaoui db747c49a9 Disable PRELOAD libs compilation 2018-05-06 22:53:30 +03:00
Daniel Zaoui 7a4e7f2e55 Introduce a new player not using LD_PRELOAD
To make Exactness portable, LD_PRELOAD needs to be replaced by other
mechanisms.
2018-04-21 22:20:23 +03:00
Daniel Zaoui c83ed3fabb Fix preload after removal of ecore_main_loop_begin
Since this function doesn't exist anymore, we need to catch the loop
begin in a different way.
2018-01-01 00:18:27 +02:00
Daniel Zaoui 09dc7c8353 Update code after EFL changes 2017-09-19 10:36:04 +03:00
Daniel Zaoui 62298eb8ff Check evas validity before invocations 2016-11-30 07:06:02 +02:00
Daniel Zaoui 8a76345c15 Fix compilation when debug is enabled 2016-11-30 06:42:06 +02:00
Daniel Zaoui dd4c1caade Store and compare objects information at every shot
This feature is aimed to provide a new way to debug applications during
scenarios playing.
When a difference happens between two shots of an application, the
investigation can be tough as the cause may be hidden into a tiny
change, such as an update of the theme.
This feature tries to respond to this problem by storing objects of
the application every time a shot is taken. Then during shots comparison,
objects information are compared and differences are displayed on the
screen.

The feature can be used with the -S option.

For the moment, only hierarchy, order and geometry are checked.
2016-10-26 07:57:24 +03:00
Daniel Zaoui 8e0a638b19 Rename static variable 2016-10-23 06:10:20 +03:00
Daniel Zaoui 33730b5dcd Destination directory is not needed during simulation
Shots are not needed in this mode too.
2016-10-10 10:42:48 +03:00
Daniel Zaoui 0eb607e7df Separate code related to recording and to playing hooks.
Hooks mixed in a same file leads to less readability.
2016-10-09 10:28:14 +03:00
Daniel Zaoui 081a86902c Rename internal file
This is the first part to separate hooks related to recorder and to
player.
2016-10-09 07:41:20 +03:00
Daniel Zaoui 66347ba6a7 Modify internal functions scope.
These functions were declared as EAPI when they were only used
internally.
2016-10-09 07:38:07 +03:00
Daniel Zaoui 389c05bb5c Remove unused structure 2016-10-09 07:14:21 +03:00
Daniel Zaoui 1ad03a2e49 Modify macro to prevent simple-but-hard-to-find bugs
One of them is to forget to replace the struct name during a line copy,
leading to write bad data in the recording file and to its corruption.
2016-09-22 08:01:39 +03:00
Daniel Zaoui 95327a0f7c Recording: support new EFL input events
During recording, hooking on Evas functions can't work anymore as they
are no more invoked internally.
The new way to catch the events is to listen to them on the canvas.
Additionally, regular mouse events are now multi events whose tool (device id)
is 0, as well as key events with and without keycode are now always
considered with a keycode that can be 0.

Previous events catching has been kept to support legacy applications.
2016-09-22 07:38:10 +03:00
Daniel Zaoui a21c2f39cc Add an new executable to help on recordings maintenance
An issue that currently happens in Exactness is that we don't have any
way to debug the recordings.
Only debug information can help us to figure out what data is stored
inside the rec files.

Three commands are available:
- Clean: remove bad timestamp events and duplicate events
- Add a delay: because of the first event is directly treated if no
first timestamp is present, we need a way to fix recordings by adding
them a delay before the first event.
- List information: display the list of events, as vieet doesn't work at
all. Really helpful to figure out bugs.
2016-03-27 11:53:44 +03:00
Daniel Zaoui 4effc37ab0 Support reference timestamp
An issue due to timing happens when applying scenarios on applications.

The first event is directly treated, even if the recorder waited a few
seconds without any action.
The reason is that Exactness saves in the .rec file a timestamp that is
the uptime value, i.e an absolute value. A better choice would have been
to save the number of ms relative to the launch of the application.

Because of this, Exactness doesnt have any way to know when the first
event has to be treated and consumes it whenever possible, i.e at the
beginning.

This patch adds to the recording file a timestamp reference, corresponding
to the uptime at ecore_init. When applying the scenario, this timestamp
is checked and gives an idea of a delay to wait before consuming the first
event.
2016-03-23 11:42:47 +02:00
Daniel Zaoui b5900b27af Don't record an event with incorrect timestamp 2016-03-23 11:41:53 +02:00
Daniel Zaoui 1a35f7e8ba Remove struct member that has no reason to be 2016-03-23 09:06:08 +02:00
Daniel Zaoui 06811238a1 Recording: stop recording consecutive duplicates events
A lot of events caught by Exactness preload are repeated with the same
information, such as mouse move on the same coordinates and with the
same timestamp. This adds a lot of noise into the recording file.

This patch checks if the current caught event is the same as the last
stored and skips it if they are the same.
2016-03-17 11:48:35 +02:00
Daniel Zaoui ef0b0ae89b Modify the verbose rectangle color on clicked and shot
This is useful when looking at recorded scenarios to understand what is
done.
Sometimes, when scenarios are too old, click is not done on the right
area, leading to weird behavior.
2016-02-28 15:00:40 +02:00
Daniel Zaoui 83b9e632dc Add F3 key to record scenario
During ecore_shutdown, when the refcount reached 0, the scenario record
has to be done. The problem is that the ecore termination never happens
because of ecore modules loaded during init that references ecore
refcount.
The solution, until this is fixed, is to trigger the scenario recording
from a key press.
2016-02-28 15:00:40 +02:00
kabeer khan bb051fce2b Prevent deletion of shots having same prefix as test name
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: tasn

Differential Revision: https://phab.enlightenment.org/D2629
2015-06-09 13:52:53 +01:00
kabeer khan 773e539083 Avoid comparing of tests in play step having common prefix
Summary:
Currently genlist_group is also running in play step even if it is
commented in tests.txt. Fixed this issue

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, stefan_schmidt, tasn

Subscribers: stefan_schmidt

Differential Revision: https://phab.enlightenment.org/D2604
2015-06-04 10:50:33 +01:00
kabeer khan a701d336ca Make exactness independant of elementary
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: tasn

Differential Revision: https://phab.enlightenment.org/D2105
2015-03-05 13:03:08 +00:00
Tom Hacohen e2c1fa0636 Remove unused variable. 2015-03-05 12:03:55 +00:00
kabeer khan 079dbb6dd5 added code to enable shots capturing of ecore_evas and evas examples
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, tasn

Reviewed By: tasn

Differential Revision: https://phab.enlightenment.org/D2082
2015-03-04 15:00:05 +00:00
kabeer khan 450d2888eb Add key up/down with keycode event handler
Summary:
To catch key press event added key up/down with keycode event handler

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, tasn

Differential Revision: https://phab.enlightenment.org/D2052
2015-03-04 14:55:17 +00:00
Tom Hacohen 3b0eb3b873 Fixed a bug preventing it from working on some setups. 2013-10-20 11:21:12 +01:00
Tom Hacohen 163567f0cc Added a more verbose "Shot taken" message.
Include the filename in the message.
2013-06-14 14:41:55 +01:00
Tom Hacohen a2c36ec82a Fix memory leak of filename when running in simulation mode. 2013-06-14 14:41:04 +01:00
Tom Hacohen 4b8326ad60 Change image files naming template: name_%d.png -> name_%03d.png. 2013-06-14 13:33:23 +01:00
Tom Hacohen 5500a3c0b1 Add an hook to evas_event_input_mouse_move.
Apparently this one is what the new function that is used by ecore_input
(and should be used by input providers) to get input to Evas.
2013-06-13 15:38:03 +01:00
Tom Hacohen b606de65cc Hook on evas_new instead of elm_win_add when tracking Evas.
This makes it more general and thus suitable for non-elm applications.
2013-06-13 13:48:28 +01:00
Tom Hacohen b4b7e65edd Fix initialization issues (and thus some segfaults).
Init ecore before using it, shutdown after done.
Init eet, as we need it as well.
2013-06-13 13:47:22 +01:00
Daniel Willmann f94850e84a ecore_init/shutdown: Proper refcounting for wrappers
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-10 16:57:48 +01:00
Tom Hacohen ed1d015b8f Added more verbose output to test buildbot. 2013-06-10 13:44:36 +01:00
Tom Hacohen c99fdfb239 Added some verbose support (including cursor in simulation). 2013-05-17 15:47:08 +01:00
Tom Hacohen 381bd401f8 Get rid of the useless TSUITE_BASE_DIR env var. 2013-04-26 14:11:43 +01:00
Aharon Hillel eed1c5afdb exactness: Fixed warnings.
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 68338
2012-02-23 13:59:44 +00:00
Aharon Hillel 8afb58e764 exactness: Fixed evas function in tsuite_shot_do
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 68273
2012-02-22 13:44:12 +00:00
Aharon Hillel eb03cf9f84 exactness: Fixed Multuple-evas support
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 67928
2012-02-14 13:52:41 +00:00
Aharon Hillel 2ece837725 Exactness: Avoid allocating strings when NOT recording
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 67924
2012-02-14 13:52:28 +00:00
Aharon Hillel 9ab15c434c Exactness: Evas now is taken from elm_win_add
Because tsuite_shot_do creates Evas and we cant use evas_new
without doing ugly hacks.

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 67923
2012-02-14 13:52:25 +00:00
Aharon Hillel b9406b348a exactness: Cleaned tsuite_evas_hook
TODO: Need to add support of multiple evas for messaging

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 67922
2012-02-14 13:52:22 +00:00
Aharon Hillel 034738063c exactness: Initial version of recording lib.
TODO: Need to refine, clean code. TODO: Later fix tests issues.

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 67921
2012-02-14 13:52:17 +00:00
Aharon Hillel 9c25a64c18 exactness: Added hooking-stabs of ecore,evas funcs.
TODO: need to move tsuite.c record, play functionality to those funcs.

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 67920
2012-02-14 13:52:14 +00:00
Aharon Hillel 5e172d447b exactness: Added EAPI for funcs
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 66373
2011-12-20 09:05:40 +00:00