Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Gnomeとdogtail
Search
Masami Ichikawa
August 22, 2010
Programming
0
110
Gnomeとdogtail
Masami Ichikawa
August 22, 2010
Tweet
Share
More Decks by Masami Ichikawa
See All by Masami Ichikawa
cgroupsとプロセス生成・終了処理
masami256
1
1.3k
Linux の Debug 機能
masami256
0
110
Linux Namespaces
masami256
0
74
slub: alloc and free
masami256
0
97
SLUB data structures
masami256
0
120
SystemV IPC
masami256
0
130
Linux Namespace
masami256
0
84
とある帽子の大蛇料理Ⅱ
masami256
0
93
x86 とコンテキストスイッチ
masami256
0
290
Other Decks in Programming
See All in Programming
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
550
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
260
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
110
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
140
Angular-Apps smarter machen mit Gen AI: Lokal und offlinefähig - Hands-on Workshop!
christianliebel
PRO
0
110
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
250
OTP を自動で入力する裏技
megabitsenmzq
0
100
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
950
モダンOBSプラグイン開発
umireon
0
120
守る「だけ」の優しいEMを抜けて、 事業とチームを両方見る視点を身につけた話
maroon8021
3
910
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.8k
受け入れテスト駆動開発(ATDD)×AI駆動開発 AI時代のATDDの取り組み方を考える
kztakasaki
2
580
Featured
See All Featured
Color Theory Basics | Prateek | Gurzu
gurzu
0
250
So, you think you're a good person
axbom
PRO
2
2k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
Mobile First: as difficult as doing things right
swwweet
225
10k
Facilitating Awesome Meetings
lara
57
6.8k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.4k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
990
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
280
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Marketing to machines
jonoalderson
1
5k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Transcript
Gnome と dogtail 2010/08/22 カーネル/ VM 探検隊 @masami256
What is the dogtail? • 元々は Redhat で開発されたテストツール • GUI
の操作を自動化 • 実装は Python で書かれてる • スクリプトも Python で書く • 操作のキャプチャ・リプレイ可能
Base Technology • AT-SPI を利用 • Assistive Technology Service Provider
Interface • Gnome プロジェクト発祥
AT-SPI Browser
AT-SPI Browser
Dogtail Internal pyatspy dogtail
Dogtail Internal •
[email protected]
• click, check などのアクションの定義と実行 •
[email protected]
• UI を構成する各要素を取得して保持 • 要素の内容の取得・変更もする • コンボボックスの選択内容を取得したり、テキスト ボックスに文字を書き込むなど
Dogtail Internal •
[email protected]
• フォーカスに関するクラス • Window や Application
にフォーカスを移したり、 フォーカスのある要素に対してアクションを実行な ど • WARNING: Here There be Dragons (TM)
Dogtail Internal •
[email protected]
• テストクラスの本体 •
[email protected]
• テスト対象のプロセス起動、停止などを実行など
• rawinput.py • マウス・キーボードのイベントを取得し、イベント を登録する • utils.py • プログラムの実行、スクリーンショット取得など
ご清聴ありがとうございました