2 Documentation Verification that DLUX cotains Yangman submenu when logged in.
3 ... Verification that when Yangman submenu entered, there are certain elements displayed.
4 ... Verification that the selected operation is displayed and relevant code mirror(s) is/are displayed.
5 Suite Teardown Close Browser
6 Resource ${CURDIR}/../../../libraries/YangmanKeywords.robot
11 Open dlux and login and verify yangman submenu has been loaded
12 GUIKeywords.Open Or Launch DLUX Page And Log In To DLUX
14 Verify yangman submenu elements
15 YangmanKeywords.Verify Yangman Home Page Elements
16 Verify Operations Presence In Operation Select Menu
17 YangmanKeywords.Exit Opened Application Dialog
19 Verify operation selection and code mirror displaying works correctly
20 Select Each Operation And Verify That Code Mirrors Has Been Displayed Correctly
22 Verify that selecting/deselecting show data checkboxes in json view results in displaying/hiding the corresponding code mirror
23 Verify Displaying And Hiding Of CMs When Selecting Show Data Checkboxes
26 Verify Operations Presence In Operation Select Menu
27 YangmanKeywords.Expand Operation Select Menu
28 Selenium2Library.Wait Until Page Contains Element ${GET_OPTION}
29 Selenium2Library.Wait Until Page Contains Element ${PUT_OPTION}
30 Selenium2Library.Wait Until Page Contains Element ${POST_OPTION}
31 Selenium2Library.Wait Until Page Contains Element ${DELETE_OPTION}
33 Select Each Operation And Verify That Code Mirrors Has Been Displayed Correctly
34 ${operation_ids}= YangmanKeywords.Return List Of Operation IDs
35 ${operation_names}= YangmanKeywords.Return List Of Operation Names
36 : FOR ${i} IN RANGE 0 len(${operation_ids})
37 \ ${operation_id}= Collections.Get From List ${operation_ids} ${i}
38 \ ${operation_name}= Collections.Get From List ${operation_names} ${i}
39 \ YangmanKeywords.Expand Operation Select Menu And Select Operation ${operation_id} ${operation_name}
40 \ Run Keyword If "${operation_name}"=="PUT" or "${operation_name}"=="POST" BuiltIn.Run Keywords YangmanKeywords.Verify Sent Data CM Is Displayed
41 \ ... AND YangmanKeywords.Verify Received Data CM Is Displayed
42 \ Run Keyword If "${operation_name}"=="GET" or "${operation_name}"=="DELETE" YangmanKeywords.Verify Received Data CM Is Displayed
44 Verify Displaying And Hiding Of CMs When Selecting Show Data Checkboxes
45 YangmanKeywords.Select Json View
46 YangmanKeywords.Expand Operation Select Menu And Select Operation ${GET_OPTION} GET
47 YangmanKeywords.Verify Sent Data CM Is Not Displayed
48 YangmanKeywords.Verify Received Data CM Is Displayed
49 GUIKeywords.Patient Click ${SHOW_SENT_DATA_CHECKBOX_UNSELECTED} ${SHOW_SENT_DATA_CHECKBOX_SELECTED}
50 YangmanKeywords.Verify Sent Data CM Is Displayed
51 YangmanKeywords.Verify Received Data CM Is Displayed
52 GUIKeywords.Patient Click ${SHOW_RECEIVED_DATA_CHECKBOX_SELECTED} ${SHOW_RECEIVED_DATA_CHECKBOX_UNSELECTED}
53 YangmanKeywords.Verify Sent Data CM Is Displayed
54 YangmanKeywords.Verify Received Data CM Is Not Displayed
55 GUIKeywords.Patient Click ${SHOW_SENT_DATA_CHECKBOX_SELECTED} ${SHOW_SENT_DATA_CHECKBOX_UNSELECTED}
56 YangmanKeywords.Verify Sent Data CM Is Not Displayed
57 YangmanKeywords.Verify Received Data CM Is Not Displayed