@@ -200,8 +200,8 @@ private Html buildHtml() throws IOException, ParseException {
200200 new Div (this ,
201201 new ClassAttribute ("row" )) {{
202202 new Div (this ,
203- new Style ("background-color: rgb(0,191,255); color: white; padding: 10px; font-size:18px; font-weight: 300; " )) {{
204- new H1 (this , new Style ("font-size:18px ; font-weight: 300 ;" )) {{
203+ new Style ("background-color: rgb(0,191,255); color: white; padding: 10px;" )) {{
204+ new H1 (this , new Style ("font-size:22px ; font-weight: 200 ;" )) {{
205205 new NoTag (this , String .format ("Results from: %s" , new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss" ).format (new Date ())));
206206 }};
207207 }};
@@ -245,23 +245,27 @@ private Html buildHtml() throws IOException, ParseException {
245245 new Div (this ,
246246 new ClassAttribute ("row" )) {
247247 {
248+ String bgColor = "background: rgba(0,250,154, 0.5)" ;
249+ if (isFailed ) {
250+ bgColor = "background: rgba(240,128,128, 0.5)" ;
251+ }
248252 new Div (this ,
249- new Style ("margin-top:2px" ),
253+ new Style ("margin-top:2px;" + bgColor ),
250254 new ClassAttribute ("accordion" )) {{
251255 new H1 (this ,
252- new Style ("color: rgb(47,79,79); font-size:24px; font-size:18px; font-weight: 300;" )) {{
256+ new Style ("color: rgb(47,79,79); font-size:24px; font-size:18px; font-weight: 300; text-decoration: underline; " )) {{
253257 new NoTag (this , String .format ("Scenario: \" %s\" " , jsonObject .get (SCENARIO )));
254- if (isFailed ) {
255- new Span (this ,
256- new Style ("color: rgb(255,99,71); float:right; font-size:18px; font-weight: 500; margin-right: 32px" )) {{
257- new NoTag (this , "Failed" );
258- }};
259- } else {
260- new Span (this ,
261- new Style ("color: rgb(60,179,113); float:right; font-size:18px; font-weight: 500; margin-right: 32px" )) {{
262- new NoTag (this , "Passed" );
263- }};
264- }
258+ // if (isFailed) {
259+ // new Span(this,
260+ // new Style("color: rgb(255,99,71); float:right; font-size:18px; font-weight: 500; margin-right: 32px")) {{
261+ // new NoTag(this, "Failed");
262+ // }};
263+ // } else {
264+ // new Span(this,
265+ // new Style("color: rgb(60,179,113); float:right; font-size:18px; font-weight: 500; margin-right: 32px")) {{
266+ // new NoTag(this, "Passed");
267+ // }};
268+ // }
265269 }};
266270
267271 }};
@@ -273,18 +277,20 @@ private Html buildHtml() throws IOException, ParseException {
273277 new Style ("color: rgb(0,139,139); font-size:18px; font-weight: 300;" )) {{
274278 new NoTag (this , String .format ("Element: \" %s\" " , jsonObject .get (ELEMENT_NAME )));
275279 }};
276- new H3 (this ,
277- new Style ("color: rgb(255,69,0); font-size:18px; font-weight: 300;" )) {{
278- new NoTag (this , "Failures:" );
279- }};
280+ if (isFailed ) {
281+ new H3 (this ,
282+ new Style ("color: rgb(255,69,0); font-size:18px; font-weight: 300;" )) {{
283+ new NoTag (this , "Failures:" );
284+ }};
285+ }
280286 new Ol (this ) {{
281287 for (Object details : details ) {
282288 JSONObject det = (JSONObject ) details ;
283289 JSONObject reason = (JSONObject ) det .get (REASON );
284290 String numE = (String ) reason .get (MESSAGE );
285291
286292 new Li (this ,
287- new Style ("color: rgb(105,105,105); font-size:14px; font-weight: 300 ;" )) {{
293+ new Style ("color: rgb(105,105,105); font-size:14px; font-weight: 400 ;" )) {{
288294 new NoTag (this , numE );
289295 }};
290296 }
0 commit comments