question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slow / Inconsistent test performance on iOS real devices.

See original GitHub issue

What is your Scenario?

To execute testcafe tests on iOS real devices.

What is the Current behavior?

Test runs are extremely slow and often disconnect. On the other hand, tests are working fine on Android devices without any disconnection issues.

What is the Expected behavior?

Test performance should be comparable to android devices.

What is your public website URL? (or attach your complete example)

https://gap.com

What is your TestCafe test code?

import { Selector } from ‘testcafe’; fixture GAP Sample .page https://gap.com;

test(‘Interacting with Gap.com’, async t => {

const searchbut = Selector('button').withAttribute("aria-label", "Open search bar");
await t. click(searchbut)
console.log("✔️ Clicked to search")


//Type in search bar


const search = Selector('input').withAttribute("name", "searchText");
await t. typeText(search,'Shirt')
console.log("✔️ Entered search text 'Shirt'")
//Click search button
const searchbutton = Selector('button').withAttribute("aria-label", "search");
await t.click(searchbutton)
console.log('✔️ Clicked search button')


const rollcuff = Selector('img').withAttribute("name", "Oxford Shirt in Untucked Fit");
await t.click(rollcuff)
console.log('✔️ Clicked on Oxford Shirt in Untucked Fit')

await t.wait(2000)

const fifty = Selector('button').withAttribute("aria-label", "up to 50% off + extra 20% off");
await t.click(fifty)
console.log('✔️ Closed Offer Banner')

const size = Selector('input').withAttribute("aria-label", "L");
await t.click(size)
console.log('✔️ Selected size of the Shirt')

});

Your complete configuration file

No response

Your complete test report

vishnu@Admins-MacBook-Pro-2 testcafe-sample % testcafe remote gap_mobile.js --qr-code Using locally installed version of TestCafe. Connecting 1 remote browser(s)… Navigate to the following URL from each remote browser. You can either enter the URL or scan the QR-code. Connect URL: http://192.168.100.81:55816/browser/connect

CONNECTED Safari 15.0 / iOS 15.0.2 Running tests in:

  • Safari 15.0 / iOS 15.0.2

GAP Sample ERROR The Safari 15.0 / iOS 15.0.2 browser disconnected. If you did not close the browser yourself, browser performance or network issues may be at fault.

Screenshots

No response

Steps to Reproduce

  1. With the above test code in your project run the following command: testcafe remote gap_mobile.js --qr-code
  2. Scan the generated QR code from an iOS real device. (The device and your test should be executed on the same network)
  3. The testcafe connection is successful after scanning.

TestCafe version

1.18.4

Node.js version

v17.4.0

Command-line arguments

testcafe remote gap_mobile.js --qr-code

Browser name(s) and version(s)

Safari 15.0

Platform(s) and version(s)

iOS 15.0.2

Other

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
okmttdhrcommented, Sep 2, 2022

Hi, the same situation occurs on macOS 11 and above for your information.

2reactions
AlexKamaevcommented, Mar 23, 2022

Thank you for the detail description. I was able to reproduce the issue. I confirm that an error is thrown when you use your iPhone device as a remote.

I also tested the website on an Android device. It works on Android, but the test execution time is too long.

We’ll research this issue. Please bear with us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iPhone 12 series slow/inconsistent Wi-Fi speeds reported by ...
Several iPhone 12 series users have complained about slow/inconsistent Wi-Fi speeds on their device. We investigate & provide possible ...
Read more >
Poor GPS accuracy on iOS 11 / iPhone X - Apple Developer
The results from the Watch GPS are similar to before, but those from the iPhone GPS are dramatically worse at times. In ideal...
Read more >
How to simulate slow internet connection on iOS & Android
Click on the Throttle Network option and then Select the Network condition you wish to simulate. Simulate to Slower Internet on Android and...
Read more >
Reports of Slow and Inconsistent Wi-Fi Connections on Some ...
Based on speed test results using the same server, the 4S is around three times ... reported similar results with different devices that...
Read more >
How to fix your iPhone 11 slow internet connection issue after ...
Aside from a post-update bug, other factors that you should rule out are random firmware crashes that slowed down the network system on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found