Could not create Bug on Test Pass #5856
Unanswered
ShouptikDeyIllumina
asked this question in
Q&A
Replies: 1 comment
-
Note That Some time (For Case 2) A bug is getting created |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the issue
Hi,
I am trying to create a playwright custom reporter to Create Bug Whenever there is a failure in Test cases. I have wrote a method called CreateBug(). This method is creating but using post call. But i am facing a wired problem. Besically after a test has been executed it run onTestEnd() method. So i am seeing 3 types of behaviors:
1> when both (Test A and Test B)passed -> No bug created
2> When Test A passed but Test B failed -> its creating Bug for the passed test(Test A)
3> When Both Test Failed -> No Bug Created.
In pic A both test passed but just for experiment i am not using any if here insted i am calling CreareBug() method. and method is being called as well. i have used a debug.log() in Createbug method just before Post method. as we can see in the terminal its printing the debug.log but after that post method didn't worked. If any error occurred try block should have caught it and print the error on catch block. that also is not coming. i believe for some reason is post method is being called not sure why
Please can anyone help me for this issue?
Pic A
![image](https://private-user-images.githubusercontent.com/135975495/263712056-bd0b668b-613f-40a9-b3e7-85fdf37a155d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4Nzg2MTEsIm5iZiI6MTcyNDg3ODMxMSwicGF0aCI6Ii8xMzU5NzU0OTUvMjYzNzEyMDU2LWJkMGI2NjhiLTYxM2YtNDBhOS1iM2U3LTg1ZmRmMzdhMTU1ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyOFQyMDUxNTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01OTVkZjA0OTU4MDM1MzdjYzAzZDQ4N2NkN2EyZjYxZGIyOWQ3ZDk0Y2RkYmNlN2E5OWM0ZjAzOTYwN2ZiNWMyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.di_xzdJmmaCCqeCpQLEJ8nKdCgc_ps2kMLsSg3OZaGs)
Example Code
No response
Expected behavior
No response
Axios Version
No response
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions