diff --git a/src/test/MavenTestDevModeActions.ts b/src/test/MavenTestDevModeActions.ts index 067a63be..1134fa63 100755 --- a/src/test/MavenTestDevModeActions.ts +++ b/src/test/MavenTestDevModeActions.ts @@ -190,7 +190,7 @@ it('View Integration test report for maven project', async () => { }).timeout(10000); -it('Run tests for sample maven project with surefire version 3.4.0', async () => { +/*it('Run tests for sample maven project with surefire version 3.4.0', async () => { // Define the report paths const reportPaths = [ @@ -246,7 +246,7 @@ it('View Integration test report for maven project with surefire version 3.4.0', tabs = await new EditorView().getOpenEditorTitles(); expect(tabs.indexOf(constants.FAILSAFE_REPORT_TITLE) > -1, "Integration test report not found").to.equal(true); -}).timeout(10000); +}).timeout(10000);*/ it('attach debugger for start with custom parameter event', async () => { console.log("start attach debugger"); @@ -255,12 +255,12 @@ it('attach debugger for start with custom parameter event', async () => { try { await utils.launchDashboardAction(item,constants.START_DASHBOARD_ACTION_WITH_PARAM, constants.START_DASHBOARD_MAC_ACTION_WITH_PARAM); await utils.setCustomParameter("-DdebugPort=7777"); - VSBrowser.instance.takeScreenshot('degbugging1 3.4.0'); + VSBrowser.instance.takeScreenshot('after setCustomParameter 3.4.0'); await utils.delay(30000); - VSBrowser.instance.takeScreenshot('degbugging2 3.4.0'); + VSBrowser.instance.takeScreenshot('before checkTerminalforServerState 3.4.0'); isServerRunning = await utils.checkTerminalforServerState(constants.SERVER_START_STRING); - await utils.delay(30000); + VSBrowser.instance.takeScreenshot('after checkTerminalforServerState 3.4.0'); console.log('isServerRunning value -->',isServerRunning); if (!isServerRunning) console.log("Server started with params message not found in terminal"); diff --git a/src/test/utils/testUtils.ts b/src/test/utils/testUtils.ts index 6ede9315..817d5f12 100755 --- a/src/test/utils/testUtils.ts +++ b/src/test/utils/testUtils.ts @@ -115,28 +115,28 @@ export function getMvnProjectPath(): string { let foundText = false; let count=0; do{ - VSBrowser.instance.takeScreenshot('degbugging 10- 3.4.0'); + VSBrowser.instance.takeScreenshot('before clean slate for clipboard for '+count); clipboard.writeSync('');//clean slate for clipboard - await workbench.executeCommand('terminal select all'); - await delay(30000); + await workbench.executeCommand('terminal select all'); const text = clipboard.readSync(); - console.log("debug:" + text) ; + console.log("debug:" + text); + VSBrowser.instance.takeScreenshot('after clipboard.readSync text'); ; if( text.includes(serverStatusCode)){ - VSBrowser.instance.takeScreenshot('degbugging 11- 3.4.0'); + VSBrowser.instance.takeScreenshot('after text includes server status code for '+count); foundText = true; console.log("Found text "+ serverStatusCode); break; } else if(text.includes("FAILURE")) { - VSBrowser.instance.takeScreenshot('degbugging 12- 3.4.0'); + VSBrowser.instance.takeScreenshot('text includes failure for '+count); console.log("Found failure "+ text); foundText = false; break; } else { - VSBrowser.instance.takeScreenshot('degbugging 13- 3.4.0'); + VSBrowser.instance.takeScreenshot('text doest contain server status or failure for '+count); console.log("test is running ...") foundText = false; } @@ -144,7 +144,7 @@ export function getMvnProjectPath(): string { await workbench.getDriver().sleep(10000); } while(!foundText && (count <= 20)); await workbench.executeCommand('terminal clear'); - VSBrowser.instance.takeScreenshot('degbugging 14- 3.4.0'); + VSBrowser.instance.takeScreenshot('after executing terminal clear '); return foundText; }