Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 6e63fa8

Browse files
committed
SORMAS-Foundation#3223 - Added event title field to the automation tests
1 parent 7e19703 commit 6e63fa8

5 files changed

Lines changed: 103 additions & 13 deletions

File tree

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<WebElementEntity>
3+
<description></description>
4+
<name>input_Title_eventTitle</name>
5+
<tag></tag>
6+
<elementGuidId>baae4555-0ad2-4f59-a892-bd55de4f2724</elementGuidId>
7+
<selectorMethod>BASIC</selectorMethod>
8+
<useRalativeImagePath>false</useRalativeImagePath>
9+
<webElementProperties>
10+
<isSelected>true</isSelected>
11+
<matchCondition>equals</matchCondition>
12+
<name>tag</name>
13+
<type>Main</type>
14+
<value>input</value>
15+
</webElementProperties>
16+
<webElementProperties>
17+
<isSelected>false</isSelected>
18+
<matchCondition>equals</matchCondition>
19+
<name>type</name>
20+
<type>Main</type>
21+
<value>text</value>
22+
</webElementProperties>
23+
<webElementProperties>
24+
<isSelected>false</isSelected>
25+
<matchCondition>equals</matchCondition>
26+
<name>class</name>
27+
<type>Main</type>
28+
<value>v-textfield v-widget soft-required v-textfield-soft-required v-required v-textfield-required v-has-width</value>
29+
</webElementProperties>
30+
<webElementProperties>
31+
<isSelected>true</isSelected>
32+
<matchCondition>equals</matchCondition>
33+
<name>id</name>
34+
<type>Main</type>
35+
<value>eventTitle</value>
36+
</webElementProperties>
37+
<webElementProperties>
38+
<isSelected>false</isSelected>
39+
<matchCondition>equals</matchCondition>
40+
<name>aria-labelledby</name>
41+
<type>Main</type>
42+
<value>gwt-uid-16</value>
43+
</webElementProperties>
44+
<webElementProperties>
45+
<isSelected>false</isSelected>
46+
<matchCondition>equals</matchCondition>
47+
<name>aria-required</name>
48+
<type>Main</type>
49+
<value>true</value>
50+
</webElementProperties>
51+
<webElementProperties>
52+
<isSelected>false</isSelected>
53+
<matchCondition>equals</matchCondition>
54+
<name>tabindex</name>
55+
<type>Main</type>
56+
<value>0</value>
57+
</webElementProperties>
58+
<webElementProperties>
59+
<isSelected>false</isSelected>
60+
<matchCondition>equals</matchCondition>
61+
<name>xpath</name>
62+
<type>Main</type>
63+
<value>id(&quot;eventTitle&quot;)</value>
64+
</webElementProperties>
65+
<webElementXpaths>
66+
<isSelected>true</isSelected>
67+
<matchCondition>equals</matchCondition>
68+
<name>xpath:attributes</name>
69+
<type>Main</type>
70+
<value>//input[@id='eventTitle']</value>
71+
</webElementXpaths>
72+
<webElementXpaths>
73+
<isSelected>false</isSelected>
74+
<matchCondition>equals</matchCondition>
75+
<name>xpath:idRelative</name>
76+
<type>Main</type>
77+
<value>//div[@id='sormasui-1655777373-overlays']/div[3]/div/div/div[3]/div/div/div/div/div[2]/div/div/div[10]/div/div/input</value>
78+
</webElementXpaths>
79+
<webElementXpaths>
80+
<isSelected>false</isSelected>
81+
<matchCondition>equals</matchCondition>
82+
<name>xpath:position</name>
83+
<type>Main</type>
84+
<value>//div[10]/div/div/input</value>
85+
</webElementXpaths>
86+
</WebElementEntity>

sormas-e2e-ui-tests/Scripts/Events/CreateNewClusterEvent/Script1602235346380.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ WebUI.click(findTestObject('Events/NewEventView/div_Disease_v-filterselect-butto
2020

2121
WebUI.click(findTestObject('Events/NewEventView/td_Disease_COVID-19'))
2222

23-
WebUI.setText(findTestObject('Events/NewEventView/textarea_EventDescription_TArea'), 'Cluster Event')
23+
WebUI.setText(findTestObject('Events/NewEventView/input_Title_eventTitle'), 'Cluster Event')
24+
25+
WebUI.setText(findTestObject('Events/NewEventView/textarea_EventDescription_TArea'), 'This is a Cluster Event')
2426

2527
//select Nosocomial as Yes
2628
//WebUI.click(findTestObject('Events/NewEventView/Nosocomial_label_Yes'))

sormas-e2e-ui-tests/Scripts/Events/CreateNewEvent/Script1587017521693.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ WebUI.click(findTestObject('Events/NewEventView/div_Disease_v-filterselect-butto
2020

2121
WebUI.click(findTestObject('Events/NewEventView/td_Disease_COVID-19'))
2222

23-
WebUI.setText(findTestObject('Events/NewEventView/textarea_EventDescription_TArea'), 'Robo Marathon Event')
23+
WebUI.setText(findTestObject('Events/NewEventView/input_Title_eventTitle'), 'Robo Marathon Event')
24+
25+
WebUI.setText(findTestObject('Events/NewEventView/textarea_EventDescription_TArea'), 'This is a Robo Marathon Event')
2426

2527
//WebUI.click(findTestObject('Events/NewEventView/div_Source type_v-filterselect-button'))
2628

sormas-e2e-ui-tests/Scripts/Events/CreateNewScreeningEvent/Script1602235370468.groovy

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
22
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
3-
4-
import org.openqa.selenium.Keys
5-
3+
import org.openqa.selenium.Keys as Keys
64
import com.kms.katalon.core.model.FailureHandling as FailureHandling
75
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
86

@@ -20,13 +18,15 @@ WebUI.click(findTestObject('Events/NewEventView/div_Disease_v-filterselect-butto
2018

2119
WebUI.click(findTestObject('Events/NewEventView/td_Disease_COVID-19'))
2220

23-
WebUI.setText(findTestObject('Events/NewEventView/textarea_EventDescription_TArea'), 'Screening Event')
21+
WebUI.setText(findTestObject('Events/NewEventView/input_Title_eventTitle'), 'Screening Event')
2422

25-
//WebUI.click(findTestObject('Events/NewEventView/div_Source type_v-filterselect-button'))
23+
WebUI.setText(findTestObject('Events/NewEventView/textarea_EventDescription_TArea'), 'This is a Screening Event')
2624

25+
//WebUI.click(findTestObject('Events/NewEventView/div_Source type_v-filterselect-button'))
2726
//WebUI.click(findTestObject('Events/NewEventView/null'))
2827
//Sending text instead of selecting from drop down due to issue #2447
2928
WebUI.setText(findTestObject('Events/NewEventView/SourceType_Input'), 'Media/News')
29+
3030
WebUI.sendKeys(findTestObject('Events/NewEventView/SourceType_Input'), Keys.chord(Keys.ENTER))
3131

3232
WebUI.click(findTestObject('Events/NewEventView/div_TypeOfPlace_v-filterselect-button'))
@@ -36,7 +36,6 @@ WebUI.click(findTestObject('Events/NewEventView/td_TypeOfPlace_Festivities_DDIte
3636
//WebUI.setText(findTestObject('Events/NewEventView/input_SourceTelephoneNo_inputBox'), '555-35271')
3737
/*WebUI.click(findTestObject('Events/NewEventView/textarea_AddressOrLandmark_TArea'))
3838
WebUI.setText(findTestObject('Events/NewEventView/textarea_AddressOrLandmark_TArea'), 'Am Klammerberg 3')*/
39-
4039
WebUI.setText(findTestObject('Events/NewEventView/input_Street'), 'Berliner street')
4140

4241
WebUI.setText(findTestObject('Events/NewEventView/input_House number'), '66')
@@ -48,19 +47,18 @@ WebUI.setText(findTestObject('Events/NewEventView/input_City_inputBox'), 'Klammh
4847
/*WebUI.click(findTestObject('Events/NewEventView/div_AreaType_v-filterselect-button'))
4948
5049
WebUI.click(findTestObject('Events/NewEventView/td_AreaType_Urban_DDItem'))*/
51-
5250
WebUI.click(findTestObject('Events/NewEventView/div_District_v-filterselect-button'))
5351

5452
WebUI.click(findTestObject('Events/NewEventView/td_Voreingestellter Landkreis'))
5553

5654
/*WebUI.click(findTestObject('Events/NewEventView/div_Community_v-filterselect-button'))
5755
5856
WebUI.click(findTestObject('Events/NewEventView/span_Community_CharlottenburgWilmersdorf-DDItem')) */
59-
6057
WebUI.click(findTestObject('ReusableORs/div_Save'))
6158

6259
WebUI.delay(1)
6360

6461
if (isStandalone) {
65-
WebUI.closeBrowser()
66-
}
62+
WebUI.closeBrowser()
63+
}
64+

sormas-e2e-ui-tests/Scripts/Events/EditEvent/Script1587035314470.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ String firstName = TestDataConnector.getValueByKey('GenericUsers', 'first_name_e
1717

1818
String lastName = TestDataConnector.getValueByKey('GenericUsers', 'last_name_event_community')
1919

20-
WebUI.setText(findTestObject('Events/NewEventView/textarea_EventDescription_TArea'), 'Edited Event')
20+
WebUI.setText(findTestObject('Events/NewEventView/input_Title_eventTitle'), 'VFX design Event')
21+
22+
WebUI.setText(findTestObject('Events/NewEventView/textarea_EventDescription_TArea'), 'This event is Edited')
2123

2224
WebUI.scrollToElement(findTestObject('Events/EditEventView/input_CommunityContactPerson_inputBox'), 2)
2325

0 commit comments

Comments
 (0)