-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Start/stop performance metrics collection for each test case without glue code #236
base: dev
Are you sure you want to change the base?
Conversation
Issue with linting detected.
For more information on our linting policies, please see our Linting-Guide. |
}); | ||
} else { | ||
cy.log(CONSTANTS.PERFORMANCE_METRICS_NOT_ACTIVE); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you remove this code ? This function is to start/stop metrics collection and that should reside in before operation
}); | ||
} | ||
}); | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not right, why are we stopping metrics collection in aftereach
@@ -132,8 +123,36 @@ export default function (module) { | |||
// beforeEach | |||
beforeEach(() => { | |||
UTILS.getEnvVariable(CONSTANTS.FB_INTERACTIONLOGS).clearLogs(); | |||
cy.getBeforeOperationObject(); | |||
UTILS.destroyGlobalObjects([CONSTANTS.LIFECYCLE_APP_OBJECT_LIST]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we adding a .then for lines 135 and 136.
You can create a new command which internally creates marker and save start time there. Then that command can be used in beforeeach right
} | ||
} else { | ||
cy.log(CONSTANTS.PERFORMANCE_METRICS_NOT_ACTIVE); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 146 is nto 150 is not correct
No description provided.