-
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. |
*/ | ||
Cypress.Commands.add('initiatePerformanceMetrics', () => { | ||
// Retrieve the scenario name from the env. | ||
const scenarioName = Cypress.env(CONSTANTS.SCENARIO_NAME); |
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.
It seems like we only need the scenarioName
when we enter the if condition on line 1564. Do we need it to be defined outside of that block?
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.
defined scenarioName inside if block.
*/ | ||
Cypress.Commands.add('performanceValidation', (object) => { | ||
// Check if performance metrics are enabled | ||
if (UTILS.getEnvVariable('performanceMetrics')) { |
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.
Here: https://github.com/rdkcentral/firebolt-certification-suite/pull/236/files#diff-a0c4b6497a6be8ded74b56b3268804337f0607a41306ae7c236b91b7a7fab118R1564 - use a constant for performance metrics, can we not use the same here?
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.
changed to constant
No description provided.