Closed Bug 932680 Opened 11 years ago Closed 6 years ago

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

Categories

(Testing Graveyard :: JSMarionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: evanxd, Unassigned)

Details

Attachments

(1 file)

Attached video 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)
Flags: needinfo?(mike)
Flags: needinfo?(gaye)
Cool! Now do it with multiple touch events ;)
Flags: needinfo?(jlal)
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').
Oh, I just missed your idea.
I mean that yes we could to that.
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)
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?
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.
Actually, the test will run more fast. In the video, I set 300ms sleep for each click.
Flags: needinfo?(gaye)
Assignee: evanxd → nobody
Bulk closed as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1422750
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: