[marionette-marker] Show the cursor when user runs tests.

RESOLVED INCOMPLETE

Status

Testing Graveyard
JSMarionette
RESOLVED INCOMPLETE
5 years ago
5 months ago

People

(Reporter: evanxd, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 824500 [details]
Run tests with cursor

Hi all,

We could show a cursor when user runs tests to let user know where does the runner click on the screen.

Please see the demo in the video.
And the repository is in https://github.com/evanxd/marionette-marker.

It should be useful for debugging the test code.
How do you guys think?
Flags: needinfo?(jlal)
(Reporter)

Updated

5 years ago
Flags: needinfo?(mike)
(Reporter)

Updated

5 years ago
Flags: needinfo?(gaye)
Cool! Now do it with multiple touch events ;)
Flags: needinfo?(jlal)
(Reporter)

Comment 2

5 years ago
Hi James,

Actually, not yet. But we could to that.
It just only hook click event currently.
And we could let it mark a element selected with client.findElement('css-selector').
(Reporter)

Comment 3

5 years ago
Oh, I just missed your idea.
I mean that yes we could to that.
(Reporter)

Comment 4

5 years ago
Misunderstood the idea.
Agh the video isn't loading quite right for me... must go find plugin
Nice idea, Evan! One minor detail: if two click events are scripted for the same location on screen, it's difficult to tell when/if the second has occurred. Do you think you could somehow animate the overlay to communicate taps/clicks? For instance, it might be even more useful if the overlay gradually faded out over time. (I'm not sure how you've done this, so I don't know if this is technically possible.)
Flags: needinfo?(mike)
(Reporter)

Comment 7

5 years ago
Hi all, 

BTW, I think the desktop-client doesn't support multiple touch, right?
So we will not have multiple touch test case run in desktop-client?
(Reporter)

Comment 8

5 years ago
Hi Mike,

What I do for cursor thing is add a div element in a App, and listen the click events to show the cursor div on the screen.

You could see the logic in https://github.com/evanxd/marionette-marker/blob/master/index.js#L76.

And I'm just wondering that do we have time to show to user the overlay animate if the click events in tests run so fast like the video.
(Reporter)

Comment 9

5 years ago
Actually, the test will run more fast. In the video, I set 300ms sleep for each click.
(Reporter)

Updated

5 years ago
Flags: needinfo?(gaye)
(Reporter)

Updated

4 years ago
Assignee: evanxd → nobody
Bulk closed as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1422750
Status: NEW → RESOLVED
Last Resolved: 5 months ago
Resolution: --- → INCOMPLETE

Updated

5 months ago
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.