Skip to content
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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

PreethiMaai
Copy link
Contributor

No description provided.

Copy link

Issue with linting detected.
Linting failed with the following errors:

yarn run v1.22.22
$ eslint .

/home/runner/work/firebolt-certification-suite/firebolt-certification-suite/cypress/support/cypress-support/src/main.js
  264:3  error  Expected space or tab after '//' in comment  spaced-comment

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

For more information on our linting policies, please see our Linting-Guide.

});
} else {
cy.log(CONSTANTS.PERFORMANCE_METRICS_NOT_ACTIVE);
}
Copy link
Collaborator

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

});
}
});

/**
Copy link
Collaborator

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]);
Copy link
Collaborator

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);
}
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants