Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Working By Itself, Beautiful, Isn't It?

Similar presentations


Presentation on theme: "Computer Working By Itself, Beautiful, Isn't It?"— Presentation transcript:

1 Computer Working By Itself, Beautiful, Isn't It?
Roman Parparov, Bolet Consulting

2 Why? To test your GUI (and WUI) To import the data
To make a movie/demo

3 The Tools X11::GUITest X11::GUITest::record X11::protocol
X11 utilities XTest extension enabled.

4 Testing Application Complete layout control
Debug Mode for your widgets Log output and catch it Use cut-and-paste

5 Testing WUI Partial layout control Gtk/Gdk diagnostic tools
Parse the source! Cut and paste again

6 Importing Data Try to determine the toolkit! X11 basic utilities:
xwininfo xlsatoms xprop xset q xdpyinfo

7 Importing Data (II) Try attaching a query agent
X11::Protocol – low level access Reverse engineering... X11::GUITest::record xev (ugh) Application rip

8 Making a Movie/Demo Run the recording session
Using X11::GUITest::record Using xev Convert it to X11::GUITest script Set timings between calls Optimize trajectories

9 X11::GUITest Overview Consistent style and documentation
Launching the Application StartApp WaitWindow* Getting information GetMousePos GetWindowFromPoint GetChildWindows

10 X11::GUITest Overview (II)
Input functions *InputFocus *MouseButton *Key SendKeyStroke Window management Move/ResizeWindow Raise/LowerWindow

11 Caveats Window manager/Desktop Environment Window focus/control
Key delays, freezes Selection buffers PRIMARY vs. CUT_BUFFERN Toolkit clipboards

12 Other Platforms MS Windows: Win32::GUITest OS/X: X11? (N)Curses:
No real widgets

13 Thank You


Download ppt "Computer Working By Itself, Beautiful, Isn't It?"

Similar presentations


Ads by Google