Soumettre la recherche
Mettre en ligne
Automate the Swing application testing
•
Télécharger en tant que KEY, PDF
•
3 j'aime
•
1,160 vues
Kazuhiro Eguchi
Suivre
Formation
Technologie
Art & Photos
Signaler
Partager
Signaler
Partager
1 sur 21
Télécharger maintenant
Recommandé
FEST-SwingでFestival!
FEST-SwingでFestival!
You Osaki
Basic swing
Basic swing
bharathi120789
11basic Swing
11basic Swing
Adil Jafri
Fitc whats new in es6 for web devs
Fitc whats new in es6 for web devs
FITC
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
venkt12345
What's New in ES6 for Web Devs
What's New in ES6 for Web Devs
Rami Sayar
OOP Lecture 7-JTextField,JTextArea,JPassword,JButton.pptx
OOP Lecture 7-JTextField,JTextArea,JPassword,JButton.pptx
Tanzila Kehkashan
Androidの本当にあった怖い話
Androidの本当にあった怖い話
Yusuke Yamamoto
Recommandé
FEST-SwingでFestival!
FEST-SwingでFestival!
You Osaki
Basic swing
Basic swing
bharathi120789
11basic Swing
11basic Swing
Adil Jafri
Fitc whats new in es6 for web devs
Fitc whats new in es6 for web devs
FITC
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
import java.awt.Color;import java.awt.Insets;import java.awt.Con.pdf
venkt12345
What's New in ES6 for Web Devs
What's New in ES6 for Web Devs
Rami Sayar
OOP Lecture 7-JTextField,JTextArea,JPassword,JButton.pptx
OOP Lecture 7-JTextField,JTextArea,JPassword,JButton.pptx
Tanzila Kehkashan
Androidの本当にあった怖い話
Androidの本当にあった怖い話
Yusuke Yamamoto
Haxe
Haxe
Kazuhiro Eguchi
JavaFX8
JavaFX8
Kazuhiro Eguchi
実践Knockout
実践Knockout
Kazuhiro Eguchi
なれる!クラスローダー
なれる!クラスローダー
Kazuhiro Eguchi
Knockout
Knockout
Kazuhiro Eguchi
Java 並行処理の基礎update1
Java 並行処理の基礎update1
Kazuhiro Eguchi
Starting java fx
Starting java fx
Kazuhiro Eguchi
並行処理プログラミングの深淵~Java仮想マシン仕様 スレッドとロック~
並行処理プログラミングの深淵~Java仮想マシン仕様 スレッドとロック~
Kazuhiro Eguchi
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Dr Vijay Vishwakarma
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
Nguyen Thanh Tu Collection
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
UmeshTimilsina1
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Pooja Bhuva
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Amil baba
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
pradhanghanshyam7136
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
Celine George
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Pooja Bhuva
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
Esquimalt MFRC
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
Admir Softic
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
Celine George
Understanding Accommodations and Modifications
Understanding Accommodations and Modifications
MJDuyan
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Pooja Bhuva
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
Celine George
Contenu connexe
Plus de Kazuhiro Eguchi
Haxe
Haxe
Kazuhiro Eguchi
JavaFX8
JavaFX8
Kazuhiro Eguchi
実践Knockout
実践Knockout
Kazuhiro Eguchi
なれる!クラスローダー
なれる!クラスローダー
Kazuhiro Eguchi
Knockout
Knockout
Kazuhiro Eguchi
Java 並行処理の基礎update1
Java 並行処理の基礎update1
Kazuhiro Eguchi
Starting java fx
Starting java fx
Kazuhiro Eguchi
並行処理プログラミングの深淵~Java仮想マシン仕様 スレッドとロック~
並行処理プログラミングの深淵~Java仮想マシン仕様 スレッドとロック~
Kazuhiro Eguchi
Plus de Kazuhiro Eguchi
(8)
Haxe
Haxe
JavaFX8
JavaFX8
実践Knockout
実践Knockout
なれる!クラスローダー
なれる!クラスローダー
Knockout
Knockout
Java 並行処理の基礎update1
Java 並行処理の基礎update1
Starting java fx
Starting java fx
並行処理プログラミングの深淵~Java仮想マシン仕様 スレッドとロック~
並行処理プログラミングの深淵~Java仮想マシン仕様 スレッドとロック~
Dernier
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Dr Vijay Vishwakarma
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
Nguyen Thanh Tu Collection
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
UmeshTimilsina1
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Pooja Bhuva
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Amil baba
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
pradhanghanshyam7136
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
Celine George
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Pooja Bhuva
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
Esquimalt MFRC
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
Admir Softic
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
Celine George
Understanding Accommodations and Modifications
Understanding Accommodations and Modifications
MJDuyan
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Pooja Bhuva
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
Celine George
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
Dr. Sarita Anand
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
neillewis46
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
Jisc
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
Dr. Ravikiran H M Gowda
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
Jisc
Dernier
(20)
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
Understanding Accommodations and Modifications
Understanding Accommodations and Modifications
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
Automate the Swing application testing
1.
FEST-Swing Swing
@hakurai
2.
Java, C, C++,
Scala, Groovy Swing
3.
FEST-Swing • Swing • JUnit
4.
Swing • Java GUI •
AWT SWT
5.
FEST-Swing 1.robot
2. 3. 4. 5.assert
6.
1.robot robot = BasicRobot.robotWithNewAwtHierarchy();
7.
2. //main ApplicationLauncher.application( SampleFrame.class ).start(); // JFrame
myJFrame = new MyJFrame(); myJFrame.setVisible( true ); MyJFrame
8.
3. //JFrame FrameFixture frame =
WindowFinder.findFrame( MyJFrame.class ).using( robot ); // FrameFixture frame = new FrameFixture( robot, myJFrame ); JFrameFixture
9.
4. // JTextComponentFixture accountField =
frame.textBox( “accountField” ); accountField.enterText( “root” ); //OK JButtonFixture okButton = frame.button( “okButton” ); okButton.click(); “root” “accountField” “okButton” click JFrameFixture
10.
Fixture • Swing • Fixture • •
11.
Fixture •
Fixture • Finder ( ) • Fixture
12.
Swing
JFrame JPanel JPanel JTextField JButton JButton
13.
Fixture •
name • GenericTypeMatcher
14.
name //name
accountField textBox frame.textBox( “accountField” ). “accountField” JFrameFixture
15.
name • ComponentLookupException •
name • • GenericTypeMatcher • Fixture
16.
JFrame
JPanel JPanel JTextField JButton JButton okButton okButton
17.
• Fixture
click() doubleClick() enterText( String text ) drag() etc
18.
• Fixture • require •
JUnit assert requireText( String text ) requireEditable() requireEnabled() requireVisible() etc
19.
• FEST-Swing EDT •
20.
• Timeout • Pause
Condition requireEnabled(Timeout timeout) Pause pause( Condition condition, Timeout timeout)
21.
Pause •
Condition • Timeout • WaitTimedOutError
Notes de l'éditeur
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Télécharger maintenant