-
Notifications
You must be signed in to change notification settings - Fork 174
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
Tests sometimes (frequently) lose connection #1647
Comments
Hi @ryuuji3 It's difficult to understand the reason of problem by provided your information.
|
Sorry for the late reply, Command: fixture`Login and Registration`.page(`example.com`)
test('Sign up', async t => {
await t
.click(home.registerButton)
.typeText(register.firstName, 'firstname')
.typeText(register.lastName, 'lastName')
.typeText(register.email1, 'email')
.typeText(register.email2, 'email')
.typeText(register.password1, 'password')
.typeText(register.password2, 'password')
.click(register.signupButton)
.wait(5000)
}) At any time during the test, I might suddenly lose connection and the test stops. This happened on Safari and Chrome. I would see the typing pause, and then when I look at my open terminal, I would see the error message. Restarting the test may or may not solve the problem, until it happens again. |
I'm having the exact same issue: Mac OS X 10.13.5 issue: |
Same. Mac OS X 10.13.4
|
Hi guys, I tried running a simple test with authentication on GitHub 20 times and I cannot reproduce this error. Could you please create a simple example and test so that I could reproduce the issue. Or you can mail me the URL of the page I could use to reproduce this error (find my email in GitHub account settings). Mac |
The error is not 100% reproducible, it happens randomly but frequently, I would say for me happens around 40% of the times, when the page is under heavy load appears to have a frequency increase. However I haven't been able to reproduce it on safari nor firefox yet. |
I'm experiencing this as well, was working fine with testcafe v0.18, it started when I upgraded to testcafe v0.20.4 If I run it inside my docker env it runs fine. On my host I get this error 100% of the time. On my docker I have node v8.7.0 and yarn v1.2.0. On my host node v10.4.1 and yarn v1.7.0 |
Guys, it all indicates that the problem exists. |
I'm going to quickly write a example project right now, but if anyone beats me to the punch, I won't be mad. Edit: I have a test for work that already is written, but I prefer not to post it. I can send you the project in a DM? @miherlosev Edit 2: I have suspicions what may be causing the problem. I have a class like this: class SignupTest {
constructor(private t: TestController) { }
register() {
await this.t // everything in the function uses the instance of t
} And in my actual test: test('Register, async t => {
const model = new SignupTest(t)
model.register(profile)
model.login(profile.username, profile.password)
}) Does this look something similar to the tests you guys wrote, as well? |
I'm not doing this, but I use the |
Could you please send me your project to [email protected]?
Your code looks good. Also, your can import import { t } from 'testcafe';
class SignupTest {
register() {
...
await t.click('#submit');
} |
We just ran into this issue and found the solution. It turned out to be a mis-match between the node version and the testcafe version. We ended up downgrading node (to 9.2.1) to match with our older version of testcafe (0.19.2). |
@vladimirdrndarski @sirgallifrey @cmmv91 @SleepyWerewolf @ryuuji3 Guys, according to you descriptions, I can assume that the problem is related to the built-in modules ( |
We need to fix it behavior for Linux too. |
@LavrovArtem In what release will land your fix? |
@NickCis The fix is published in |
Hi, We probably have the same issue, but we're using the If I use the |
Hi @DerMika
At present, we do not publish
This is a bug. I will research it and let you know my results. |
Thanks for that! I was also wondering why you aren't pushing version tags for specific releases of Testcafé. That would make it easier for us at least to tag a specific version and get reliable results. Right now I'm running 0.20.0 although I am using "latest". This is because I never deleted my local image of when docker first downloaded the "latest" tag, docker will never fetch a newer version because it thinks it still has the correct version locally. |
We have an enhancement for that in the TestCafe repository. Track this issue to be aware of our progress. |
…1647, related to DevExpress/testcafe#2711) (DevExpress#1729) * fix `Tests sometimes (frequently) lose connection` (close DevExpress#1647, related to DevExpress/testcafe#2711) * add comment
…evExpress#1647) (DevExpress#1768) * fix `Tests sometimes (frequently) lose connection` (for Linux) (close DevExpress#1647) * fix remark * fix remark
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow. |
Sometimes when I launch tests, the tests suddenly stops; I get this error message when I look at the console.
It doesn't matter what browser I use. I am on MacOS
The text was updated successfully, but these errors were encountered: