sudharsan-selvaraj / appium-dashboard-plugin

Appium plugin that provides complete test logs, video recording of test and device logs(logcat and syslogs) for easy debugging.
116 stars 28 forks source link

[Feature] Provide list of all XHR calls safari when running tests in web apps for ios #36

Open sudharsan-selvaraj opened 2 years ago

sudharsan-selvaraj commented 2 years ago

For Android: use Chrome debug protocol. To find the remote-debugging-port use adb -s emulator-5554 forward --list. Sample output is

emulator-5554 tcp:54849 localabstract:chrome_devtools_remote
emulator-5554 tcp:8201 tcp:6790
emulator-5554 tcp:8202 tcp:6790
emulator-5554 tcp:8203 tcp:6790
emulator-5554 tcp:8204 tcp:6790
emulator-5554 tcp:8205 tcp:6790
emulator-5554 tcp:8206 tcp:6790
emulator-5554 tcp:8207 tcp:6790
emulator-5554 tcp:8208 tcp:6790
emulator-5554 tcp:8209 tcp:6790
emulator-5554 tcp:59363 localabstract:chrome_devtools_remote
emulator-5554 tcp:60350 localabstract:chrome_devtools_remote
emulator-5554 tcp:60578 localabstract:chrome_devtools_remote
emulator-5554 tcp:60895 localabstract:chrome_devtools_remote
emulator-5554 tcp:8210 tcp:6790
emulator-5554 tcp:61285 localabstract:chrome_devtools_remote
emulator-5554 tcp:8211 tcp:6790
emulator-5554 tcp:54546 localabstract:chrome_devtools_remote

pick the port number from the last entry that has localabstract:chrome_devtools_remote

For IOS: Use appium-remote-debugger

sudharsan-selvaraj commented 2 years ago

Changes for capturing chrome are merged. Will keep this issue open for tracking the changes for ios safari.