Skip to content

Commit

Permalink
Move rest of listview testing to a separate test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
eeter committed Feb 7, 2019
1 parent c849fe9 commit 5565b5a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 29 deletions.
29 changes: 6 additions & 23 deletions atests/feature_tests/items.robot
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
*** Variables ***
${TEST APPLICATION} ${EXECDIR}${/}UIAutomationTest${/}bin${/}Debug${/}UIAutomationTest.exe
${TEST APPLICATION} ${EXECDIR}/UIAutomationTest/bin/Debug/UIAutomationTest.exe
${ARGUMENTS} "generic_argument"
@{Tree node 1} Tree node 1
@{Tree node 1.1} Tree node 1 Tree node 1.1


*** Settings ***
Library OperatingSystem
Library String
Library WhiteLibrary
Test Setup Attach Main Window
Test Teardown Clean Application
Resource ..${/}resource.robot
Resource ../resource.robot

*** Test Cases ***
Verify Labels
Expand Down Expand Up @@ -86,17 +85,16 @@ Calculate When First Number is Missing
Calculate When First Number Is Alphabet
Calculate a + 5 Equals ${EMPTY}


Verify Radio Buttons
Verify Radio Button rb_peke ${TRUE}
Select Radio Button rb_ismo
Verify Radio Button rb_ismo ${TRUE}

Verify Get Radio Button State
${old_button_state}= Get Radio Button State rb_ismo
${old_button_state}= Get Radio Button State rb_ismo
Select Radio Button rb_ismo
${new_button_state}= Get Radio Button State rb_ismo
Should Not Be Equal ${old_button_state} ${new_button_state}
${new_button_state}= Get Radio Button State rb_ismo
Should Not Be Equal ${old_button_state} ${new_button_state}

Verify Slider
Verify Slider Value sladdu 0
Expand Down Expand Up @@ -209,22 +207,7 @@ Handle ToolStripButtons
Toolstrip button 3 Should Be Clicked
[Teardown] Select Tab Page tabControl Tab1

Handle ListView
[Setup] Setup for Tab 2 Tests
Select ListView Row By Index list_view 1
Bible Should Be Selected
Select ListView Row By Index list_view 2
The Art of Computer Programming Should Be Selected
Select ListView Row list_view Title Robinson Crusoe
Robinson Crusoe Should Be Selected

Repeat Keyword 2 Right Click Listview Cell list_view2 Title 1
Bible Should Be Right Clicked
Repeat Keyword 2 Right Click Listview Cell list_view2 Author 0
Daniel Defoe Should Be Right Clicked
[Teardown] Select Tab Page tabControl Tab1

ListView Row Right Click Menu
Popup menu with subitems
[Setup] Setup for Tab 2 Tests
Right Click ListView Row By Index list_view 2
Click Item In Popup Menu Delete
Expand Down
19 changes: 14 additions & 5 deletions atests/feature_tests/listview.robot
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Cell Verification
Listview Cell Text In Index Should Be list_view2 2 1 The Art of Computer Programming
Listview Cell Text In Index Should Not Be list_view2 2 1 Robinson Crusoe

Listview Cell Should Contain list_view2 Title 2 omputer
Listview Cell Should Contain list_view2 Title 2 omputer P
Listview Cell Should Not Contain list_view2 Title 2 obinson
Listview Cell In Index Should Contain list_view2 2 1 omputer
Listview Cell In Index Should Not Contain list_view2 2 1 obinson
Expand Down Expand Up @@ -72,7 +72,16 @@ Get Text From ListView
${actual} Get Listview Cell Text By Index list_view2 2 2
Should Be Equal ${actual} Science

*** Keywords ***
Setup For Tab 2 Tests
Attach Main Window
Select Tab Page tabControl Tab2
ListView Select
Select ListView Row By Index list_view 1
Bible Should Be Selected
Select ListView Row By Index list_view 2
The Art of Computer Programming Should Be Selected
Select ListView Row list_view Title Robinson Crusoe
Robinson Crusoe Should Be Selected

ListView Right Click
Repeat Keyword 2 Right Click Listview Cell list_view2 Title 1
Bible Should Be Right Clicked
Repeat Keyword 2 Right Click Listview Cell list_view2 Author 0
Daniel Defoe Should Be Right Clicked
5 changes: 4 additions & 1 deletion atests/resource.robot
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
*** Settings ***
Library String
Library WhiteLibrary

*** Variables ***
${TEST APPLICATION} ${EXECDIR}${/}UIAutomationTest${/}bin${/}Debug${/}UIAutomationTest.exe
${TEST APPLICATION NAME} UIAutomationTest
Expand All @@ -24,7 +28,6 @@ Launch White Application For Test
Attach White Main Window
Attach Window ${TEST WHITE APPLICATION NAME}


Clean Application
Input Text To Textbox txtA ${EMPTY}
Input Text To Textbox txtB ${EMPTY}
Expand Down

0 comments on commit 5565b5a

Please sign in to comment.