Comments (6)
Are you doing any sort of setup or teardown between tests? Is it the same 12 tests completing every time? If there are 3 that always don't run, I'd say to add prolific logging to those (or to test setup/teardown) to see if you can isolate where the hang is.
Given Playwright isn't throwing it's timeout error, it's hard to know without more information.
from playwright-dotnet.
@PandaMagnus The problem with more logging is: if the .TRX file isn't saved at the end (because there is no end), how do I access any logs (which are test attachments)?
from playwright-dotnet.
@Exoow If you use MSTest's TestContext.WriteLine it will write out to the pipeline window. So E.G. I have a test (non-Playwright, but using TestContext.WriteLine in MSTest,) that iterates over several items and compares them to an oracle value has a writeout like this in the pipeline logs:
That should help. You won't get the same diagnostics you get in the .trx file, which means you'll have to do some guess-and-check, but if you can narrow the hang down to one of three tests, hopefully that won't be too burdensome.
from playwright-dotnet.
@Exoow We unfortunately need a repro in order to act on it. You can try setting the DEBUG=pw:api
env var, which will give you a bit more output - but not sure if thats helpful. I would try to narrow it down first. Maybe you forgot a missing await, forgot to close a page or wrote some racy test which will end up waiting infinite. Its hard to give advice without seeing the actual code / having a better repro.
I see that one test is failing, is it always hanging when this specific test is failing? Maybe the test is the problem in this case?
from playwright-dotnet.
@mxschmitt Yes, I will try TestContext.WriteLine
as suggested to hopefully get immediate feedback even without the .trx file.
Considering the tests usually complete (doesn't matter pass or fail) it's definitely not a missing await
or such. But I'll investigate with logging and post a new issue if needed.
from playwright-dotnet.
@PandaMagnus I used TestContext.WriteLine
but my pipeline logs still look the same as in my original post.
The output is added to the test attachments instead. If you have any idea why this is different, let me know please.
from playwright-dotnet.
Related Issues (20)
- [Bug]: Failed to publish exe that targeting for Windows when using non-Windows host
- [Bug]: Run and Debug MSTest Playwright Test Project/NUnit Playwright Test Project failed HOT 2
- Where playwright writes verbose logging in .Net HOT 4
- [Bug]: `IVideo.DeleteAsync()` hangs HOT 2
- [Bug]: `NewContextAsync` on v1.43.0 is not firing up Chromium in Incognito mode HOT 6
- [Bug]: Tests in chromium based browsers halting on chrome-error://chromewebdata/ HOT 4
- [Bug]: Custom/Unknown CDP events cause playwright to close HOT 3
- [Bug]: Driver not found: /var/pkg-cache/project/project/instances/.playwright/node/linux-x64/node HOT 2
- [Bug]: Web Browser opening many times on a disabled Headless Mode HOT 5
- [Bug]: playwright.ps1 won't run on 1.43 HOT 2
- [Bug]: GetByLable/GetByRole and FillAsync is filling text in wrong text box HOT 2
- [Bug]: MSEdge installation fails on macOS 14 GitHub Actions hosted runners HOT 2
- [Bug]: Style attribute does not work for Locator.ScreenshotAsync
- How do I remove "Chrome is being controlled by automated testing software "? HOT 1
- [Bug]: has-text does not work on input fields HOT 2
- [Feature]: Subscribe to arbitrary event bindings HOT 4
- [Docs]: Contributing guide HOT 4
- [Regression]: PauseAsync/CodeGen no longer highlighting the exact location of locators on screen HOT 3
- [Feature]: Add cancellation token support HOT 1
- [Bug]: NuGet package includes nodejs 20.11.0 which is included in CVE-2024-27983 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright-dotnet.