Skip to content

Commit

Permalink
commented 3.4.0 test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshwinThomasIBM authored and JoshwinThomasIBM committed Jan 22, 2025
1 parent 4c4a03a commit 00050a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions src/test/MavenTestDevModeActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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");
Expand All @@ -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");
Expand Down
16 changes: 8 additions & 8 deletions src/test/utils/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,36 +115,36 @@ 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;
}
count++;
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;
}

Expand Down

0 comments on commit 00050a6

Please sign in to comment.