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

[Please read the message below] Error while executing the playwright test execution pipeline #34912

Closed
1 task done
Divya-kotipalli opened this issue Feb 25, 2025 · 2 comments

Comments

@Divya-kotipalli
Copy link

Please do not submit this issue.

  • I understand
@Divya-kotipalli
Copy link
Author

Hi Team,
While executing the pipeline i am getting the errors in the login environment step and playwright tests step stating that Error: storageState.json file does not exist. Please run obtainStorageState.ps1 variales are missing

Login to preprod Environment.

    Login Alias: bizAppsDemoHub_Nightly_US
    OutputDirectory: C:\__w\1\s\Playwright-Testing

    ConfigDirectory: ./src/config

Renewing StorageState - Reason: StorageState file is missing
Using certificate for authentication
[bizAppsDemoHub_Nightly_US] attempt 0
[bizAppsDemoHub_Nightly_US] Attempting to login using url: https://preprod.bizappsdemos.microsoft.com/

[bizAppsDemoHub_Nightly_US] attempt 1
[bizAppsDemoHub_Nightly_US] Attempting to login using url: https://preprod.bizappsdemos.microsoft.com/

[bizAppsDemoHub_Nightly_US] attempt 2
[bizAppsDemoHub_Nightly_US] Attempting to login using url: https://preprod.bizappsdemos.microsoft.com/

##[error]StorageState renewal failed.
Error: Exception occurred while login: AggregateError: All retries failed
at getStorageStateWithRetries (C:__w\1\s\Playwright-Testing\node_modules@paeng\playwright-solution\lib\core\auth.js:296:11)
at async renewStorageState (C:__w\1\s\Playwright-Testing\node_modules@paeng\playwright-solution\lib\core\auth.js:160:5)
at async ensureStorageStateExists (C:__w\1\s\Playwright-Testing\node_modules@paeng\playwright-solution\lib\core\auth.js:101:13) {
[errors]: [
browserContext.newPage: Target page, context or browser has been closed
Browser logs

Image

Image

@yury-s
Copy link
Member

yury-s commented Feb 25, 2025

This doesn't appear to be a bug or feature request. For general questions, please refer to our community resources. If you think this is a bug in Playwright, please open a new issue and complete the bug template.

@yury-s yury-s closed this as completed Feb 25, 2025
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

No branches or pull requests

2 participants