@@ -437,109 +437,27 @@ public void doRReportsTest()
437437 _rReportHelper .ensureFieldSetExpanded ("Shared Scripts" );
438438 _ext4Helper .checkCheckbox (R_SCRIPTS [0 ]);
439439 _ext4Helper .checkCheckbox (R_SCRIPTS [1 ]);
440- assertTrue ("Script didn't execute as expected " , _rReportHelper .executeScript (R_SCRIPT3 (DATA_BASE_PREFIX , "mouseid" ), R_SCRIPT2_TEXT1 ));
440+ assertTrue ("Script didn't execute as expeced " , _rReportHelper .executeScript (R_SCRIPT3 (DATA_BASE_PREFIX , "mouseid" ), R_SCRIPT2_TEXT1 ));
441441 saveReport (R_SCRIPTS [2 ]);
442442
443443 log ("Test editing R scripts" );
444444 signIn (); // Reset session to make sure R report isn't cached
445445 navigateToFolder (getProjectName (), getFolderName ());
446446 clickReportGridLink (R_SCRIPTS [0 ]);
447-
448- // Trying to debug windows failures on TC.
449- sleep (1_000 );
450- getArtifactCollector ().dumpPageSnapshot ("Debug_01" );
451- log ("Script: function: " + R_SCRIPT1_EDIT_FUNC );
452- log ("Script: database: " + DATA_BASE_PREFIX );
453- log ("Script: R_SCRIPT1: " + R_SCRIPT1 (R_SCRIPT1_EDIT_FUNC , DATA_BASE_PREFIX ));
454-
455-
456-
457- // Trying to debug windows failures on TC.
458- // Moved the code behind the call to _rReportHelper.executeScript into this test to make loggin less obnoxious for other tests.
459- // assertTrue("Script didn't execute as expected", _rReportHelper.executeScript(R_SCRIPT1(R_SCRIPT1_EDIT_FUNC, DATA_BASE_PREFIX), R_SCRIPT1_TEXT1));
460- _rReportHelper .clickSourceTab ();
461-
462- setCodeEditorValue ("script-report-editor" , R_SCRIPT1 (R_SCRIPT1_EDIT_FUNC , DATA_BASE_PREFIX ));
463- sleep (1_000 );
464- getArtifactCollector ().dumpPageSnapshot ("Debug_09_A" );
465-
466- _rReportHelper .clickReportTab ();
467- sleep (1_000 );
468- getArtifactCollector ().dumpPageSnapshot ("Debug_09_B" );
469-
470- String html = _rReportHelper .getReportText ();
471- log ("_rReportHelper.getReportText(): " + html );
472- log ("expected text: " + R_SCRIPT1_TEXT1 );
473- log ("checkScriptOutput: " + _rReportHelper .checkScriptOutput (html , R_SCRIPT1_TEXT1 , true ));
474-
475-
476-
477-
447+ assertTrue ("Script didn't execute as expeced" , _rReportHelper .executeScript (R_SCRIPT1 (R_SCRIPT1_EDIT_FUNC , DATA_BASE_PREFIX ), R_SCRIPT1_TEXT1 ));
478448 resaveReport ();
479449
480- // Trying to debug windows failures on TC.
481- sleep (1_000 );
482- getArtifactCollector ().dumpPageSnapshot ("Debug_02" );
483-
484450 log ("Check that edit worked" );
485451 navigateToFolder (getProjectName (), getFolderName ());
486452 clickReportGridLink (R_SCRIPTS [1 ]);
487-
488- // Trying to debug windows failures on TC.
489- sleep (1_000 );
490- getArtifactCollector ().dumpPageSnapshot ("Debug_03" );
491- log ("URL 01: " + getURL ().toString ());
492-
493453 waitAndClick (Locator .lkButton ("Start Job" ));
494454
495455 WebElement pipelineLink = waitForElement (Locator .linkWithText ("click here" ));
496456 waitForElement (Locator .byClass ("x4-window" ).containing ("Start Pipeline Job" ).hidden ());
497-
498- // Trying to debug windows failures on TC.
499- sleep (1_000 );
500- getArtifactCollector ().dumpPageSnapshot ("Debug_04" );
501- log ("URL 02: " + getURL ().toString ());
502-
503457 clickAndWait (pipelineLink );
504458 waitForPipelineJobsToComplete (2 , false );
505-
506- // Trying to debug windows failures on TC.
507- clickAndWait (Locator .linkWithText ("COMPLETE" ));
508- click (Locator .linkWithText ("Show full log file" ));
509- sleep (1_000 );
510- getArtifactCollector ().dumpPageSnapshot ("Debug_05" );
511- log ("URL 03: " + getURL ().toString ());
512-
513-
514- // Trying to debug windows failures on TC.
515- // Moving code for the next few lines to make logging less obnoxious.
516459 // go back to the report and confirm it is visible
517460 clickReportGridLink (R_SCRIPTS [1 ]);
518-
519- // Locator link = getReportGridLink(R_SCRIPTS[1], true);
520- // goToManageViews();
521- clickAdminMenuItem ("Manage Views" );
522- waitForElement (Locator .xpath ("//*[starts-with(@id, 'dataviews-panel')]" ));
523- _extHelper .waitForLoadingMaskToDisappear (WAIT_FOR_JAVASCRIPT );
524-
525- sleep (1_000 );
526- getArtifactCollector ().dumpPageSnapshot ("Debug_06" );
527- log ("URL 04: " + getURL ().toString ());
528-
529- //clickReportGridLink
530- waitForElement (Locator .linkWithText (R_SCRIPTS [1 ]), WAIT_FOR_JAVASCRIPT );
531- Locator link = Locator .linkWithText (R_SCRIPTS [1 ]);
532- sleep (1_000 );
533- getArtifactCollector ().dumpPageSnapshot ("Debug_07" );
534- log ("URL 05: " + getURL ().toString ());
535-
536- clickAndWait (link , WAIT_FOR_JAVASCRIPT );
537- _extHelper .waitForLoadingMaskToDisappear (WAIT_FOR_JAVASCRIPT );
538-
539- sleep (1_000 );
540- getArtifactCollector ().dumpPageSnapshot ("Debug_08" );
541- log ("URL 06: " + getURL ().toString ());
542-
543461 waitForElement (Locator .tagWithName ("img" , "resultImage" ));
544462 assertTextPresent (R_SCRIPT2_TEXT2 );
545463 assertTextNotPresent (R_SCRIPT2_TEXT1 );
0 commit comments