B e h a v i
- r
D r i v e n G U I T e s t A u t
- m
a t i
- n
f
- r
J a v a D e s k t
- p
, E m b e d d e d & M
- b
i l e A p p l i c a t i
- n
B e h a v i o r D r i v e n G U I T e s t A u - - PowerPoint PPT Presentation
B e h a v i o r D r i v e n G U I T e s t A u t o m a t i o n f o r J a v a D e s k t o p , E m b e d d e d & M o b i l e A p p l i c a t i o n s A b o u t m e A m
I m p l e m e n t R e l e a s e B u g R e p e a t
M a k e F e a t u r e T e s t P a s s M a k e F e a t u r e T e s t P a s s P r
u c t i
R e f a c t
C
e
Feature: Feature: Create new address books Scenario: Scenario: Create a new blank address book Given Given the app is running When When user creates a new address book Then Then the address book is blank
W r i t e a F a i l i n g F e a t u r e T e s t I m p l e m e n t R e l e a s e B u g R e p e a t
W r i t e a F a i l i n g F e a t u r e T e s t P r
u c t i
R e f a c t
C
e
Given("the app is running", function function(context) { startApplication("AddressBookSwing.jar"); }); When("user creates a new address book", function function(context) { activateItem(waitForObjectItem(":AddressBook_javax.swing.JMenuBar", "File")); activateItem(waitForObjectItem(":File_javax.swing.JMenu", "New...")); }); Then("the address book is blank", function function(context) { waitFor("object.exists(':AddressBook_javax.swing.JTable')", 20000); test.compare(findObject(":AddressBook_javax.swing.JTable").rowcount, 1); });
M a k e F e a t u r e T e s t P a s s I m p l e m e n t R e l e a s e B u g R e p e a t M a k e F e a t u r e T e s t P a s s
W r i t e a F a i l i n g F e a t u r e T e s t M a k e F e a t u r e T e s t P a s s P r
u c t i
Given("the app is running", function function(context) { startApplication("AddressBookSwing.jar"); }); When("user creates a new address book", function function(context) { common.invokeMenuItem("File","New"); }); Then("the address book is blank", function function(context) { common.verifyRowCount(":AddressBook_javax.swing.Jtable", 1); });
I m p l e m e n t R e l e a s e B u g R e p e a t R e f a c t
C
e M a k e F e a t u r e T e s t P a s s P r
u c t i