@@ -84,6 +84,24 @@ public void testExportCsv_LetterSoundLearningEvents() {
8484 assertTrue (getResponse .isSuccess ());
8585 }
8686
87+ @ Test
88+ public void testExportCsv_WordAssessmentEvents () {
89+ log .info ("testExportCsv_WordAssessmentEvents" );
90+
91+ StudentListPage studentListPage = new StudentListPage (driver );
92+ studentListPage .pressRandomStudent ();
93+ log .info ("driver.getCurrentUrl(): " + driver .getCurrentUrl ());
94+
95+ StudentPage studentPage = new StudentPage (driver );
96+
97+ String fileUrl = studentPage .getWordAssessmentEventsUrl ();
98+ log .info ("fileUrl: " + fileUrl );
99+ HttpResponse <String > getResponse = Unirest .get (fileUrl ).asString ();
100+ log .info ("getResponse.getStatus(): " + getResponse .getStatus ());
101+ log .info ("getResponse.isSuccess(): " + getResponse .isSuccess ());
102+ assertTrue (getResponse .isSuccess ());
103+ }
104+
87105 @ Test
88106 public void testExportCsv_WordLearningEvents () {
89107 log .info ("testExportCsv_WordLearningEvents" );
@@ -101,4 +119,58 @@ public void testExportCsv_WordLearningEvents() {
101119 log .info ("getResponse.isSuccess(): " + getResponse .isSuccess ());
102120 assertTrue (getResponse .isSuccess ());
103121 }
122+
123+ @ Test
124+ public void testExportCsv_NumberLearningEvents () {
125+ log .info ("testExportCsv_NumberLearningEvents" );
126+
127+ StudentListPage studentListPage = new StudentListPage (driver );
128+ studentListPage .pressRandomStudent ();
129+ log .info ("driver.getCurrentUrl(): " + driver .getCurrentUrl ());
130+
131+ StudentPage studentPage = new StudentPage (driver );
132+
133+ String fileUrl = studentPage .getNumberLearningEventsUrl ();
134+ log .info ("fileUrl: " + fileUrl );
135+ HttpResponse <String > getResponse = Unirest .get (fileUrl ).asString ();
136+ log .info ("getResponse.getStatus(): " + getResponse .getStatus ());
137+ log .info ("getResponse.isSuccess(): " + getResponse .isSuccess ());
138+ assertTrue (getResponse .isSuccess ());
139+ }
140+
141+ @ Test
142+ public void testExportCsv_StoryBookLearningEvents () {
143+ log .info ("testExportCsv_StoryBookLearningEvents" );
144+
145+ StudentListPage studentListPage = new StudentListPage (driver );
146+ studentListPage .pressRandomStudent ();
147+ log .info ("driver.getCurrentUrl(): " + driver .getCurrentUrl ());
148+
149+ StudentPage studentPage = new StudentPage (driver );
150+
151+ String fileUrl = studentPage .getStoryBookLearningEventsUrl ();
152+ log .info ("fileUrl: " + fileUrl );
153+ HttpResponse <String > getResponse = Unirest .get (fileUrl ).asString ();
154+ log .info ("getResponse.getStatus(): " + getResponse .getStatus ());
155+ log .info ("getResponse.isSuccess(): " + getResponse .isSuccess ());
156+ assertTrue (getResponse .isSuccess ());
157+ }
158+
159+ @ Test
160+ public void testExportCsv_VideoLearningEvents () {
161+ log .info ("testExportCsv_VideoLearningEvents" );
162+
163+ StudentListPage studentListPage = new StudentListPage (driver );
164+ studentListPage .pressRandomStudent ();
165+ log .info ("driver.getCurrentUrl(): " + driver .getCurrentUrl ());
166+
167+ StudentPage studentPage = new StudentPage (driver );
168+
169+ String fileUrl = studentPage .getVideoLearningEventsUrl ();
170+ log .info ("fileUrl: " + fileUrl );
171+ HttpResponse <String > getResponse = Unirest .get (fileUrl ).asString ();
172+ log .info ("getResponse.getStatus(): " + getResponse .getStatus ());
173+ log .info ("getResponse.isSuccess(): " + getResponse .isSuccess ());
174+ assertTrue (getResponse .isSuccess ());
175+ }
104176}
0 commit comments