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

Various enhancement for Automation Framework #9

Open
wants to merge 2 commits into
base: negative_case
Choose a base branch
from

Conversation

jacklesotatek
Copy link
Collaborator

@jacklesotatek jacklesotatek commented Oct 29, 2024

Solution to export test result into a PDF file (using this piece of code):
image
It will generate a report file like this one
playwright-report.pdf
image
Solution to run the test suite on preprod and mainnet config:

  • Previous I am using this library to read the config file : https://www.npmjs.com/package/dotenv
    This library it got a cons that it only can read from one .env config file , we cannot read from many env file
  • Now I am using this library to read the config file : https://www.npmjs.com/package/cross-env
  • This library can read all the config file
    Solution to send a Slack notification if the test is failed:
  • I cannot implement a Gmail notification due to it required to provide username/password : https://nodemailer.com/
  • Also I cannot upload my Slack webhook URL due to this problem (see picture attached)
    image
  • This is the result (the testcase are intentionally failed and the failed result is send to myself )
    image

Also I did update the README file to reflect these change

@jacklesotatek jacklesotatek changed the title Enhancement Various enhancement for Automation Framework Oct 29, 2024
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.

1 participant