Git Product home page Git Product logo

lab-it's Introduction

Hi ๐Ÿ‘‹, I'm Sudharsan

A passionate automation engineer from India

sudharsan-selvaraj

Connect with me:

sudhus_selvaraj sudharsan-selvaraj @sudharsanselvaraj.c testninja

sudharsan-selvaraj

Languages:

java javascript typescript

Frameworks and Tools:

android angularjs docker express firebase git html5 jasmine jenkins nodejs postgresql puppeteer selenium

sudharsan-selvaraj

lab-it's People

Contributors

sudharsan-selvaraj avatar

Stargazers

 avatar

Watchers

 avatar

lab-it's Issues

Device lab is not starting up while setting up locally

Hi @sudharsan-selvaraj,

We are trying to setup the device lab locally in our laptop use the instructions given in the readme.

This is the output of hub:

$ npm run start:hub

> start:hub
> tsc --project ./packages/hub && node packages/hub/build/index.js

info AppiumGrid Starting appium server with configuration
info AppiumGrid {
info AppiumGrid   "port": 4723
info AppiumGrid }
info AppiumGrid Loading database from /Users/avik/.cache/appium-grid/database.sqlite
info AppiumGrid Validating database connection..
info AppiumGrid Appium grid server started on http://0.0.0.0:4723
{ id: 'IN', name: 'India', timezones: [ 'Asia/Kolkata' ] }
info SocketNodeController Got new request to resiger a node with id: d6fdb5aa-923a-5e0e-b5b2-378c9ba7ba66 ,
info SocketNodeController        Host Name: Avik-Ghosh , Appium Port : 4448
info NodeManager Succcessfully added new node : d6fdb5aa-923a-5e0e-b5b2-378c9ba7ba66
info NodeManager Total number of registered  nodes: 1
info NodeDeviceController New device connected to node d6fdb5aa-923a-5e0e-b5b2-378c9ba7ba66
info NodeManager Adding device with id LKF3Y19202002203 to node d6fdb5aa-923a-5e0e-b5b2-378c9ba7ba66
info NodeManager Total device available in node d6fdb5aa-923a-5e0e-b5b2-378c9ba7ba66 : 1

command used to start hub

# avik @ Avik-Ghosh in ~/code-base/device-lab/packages/hub-ui on git:master x [14:26:58]
$ npm run start

last output 

webpack compiled with 19 warnings
Files successfully emitted, waiting for typecheck results...
Issues checking in progress...
No issues found.

this is output of plugin

$ node build/entry.js --plugin-appium-node-hub-host=localhost --plugin-appium-node-hub-port=4723 --port 4448 --allow-cors --plugin-appium-node-token <token>
info ADB Found 11 'build-tools' folders under '/Users/avik/Library/Android/sdk' (newest first):
info ADB     /Users/avik/Library/Android/sdk/build-tools/32.0.0-rc1
info ADB     /Users/avik/Library/Android/sdk/build-tools/31.0.0
info ADB     /Users/avik/Library/Android/sdk/build-tools/31.0.0-rc5
info ADB     /Users/avik/Library/Android/sdk/build-tools/31.0.0-rc2
info ADB     /Users/avik/Library/Android/sdk/build-tools/31.0.0-rc1
info ADB     /Users/avik/Library/Android/sdk/build-tools/30.0.3
info ADB     /Users/avik/Library/Android/sdk/build-tools/30.0.2
info ADB     /Users/avik/Library/Android/sdk/build-tools/30.0.1
info ADB     /Users/avik/Library/Android/sdk/build-tools/30.0.0-rc4
info ADB     /Users/avik/Library/Android/sdk/build-tools/29.0.3
info ADB     /Users/avik/Library/Android/sdk/build-tools/29.0.2
info ADB Using 'adb' from '/Users/avik/Library/Android/sdk/platform-tools/adb'
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
info AppiumGrid Intializing go-ios client
info AppiumNodeSocketManager Appium server is started. Registering node to appium grid in ws://localhost:4723/hub
info AppiumNodeSocketManager Node is now connected to the appium grid server
info AppiumNodeController Successfully resgisterd node to grid
info AppiumGrid Initializing Devicetracker..
info AndroidDeviceTracker New android device connect: LKF3Y19202002203
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell getprop init.svc.bootanim'
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell getprop'
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell cat /proc/cpuinfo'
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell cat /proc/meminfo'
ERR! AndroidDeviceTracker Device found
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell pidof app_process'
info AndroidDeviceTracker Android device tracker initalized
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell cat /proc/7403/cmdline'
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell pidof app_process'
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell cat /proc/7403/cmdline'
info ScrcpyServer Killing existing streaming service
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell kill 7403'
info ScrcpyServer Pushing scrcy server jar to device LKF3Y19202002203
info ScrcpyServer Waiting for scrcpy server to start LKF3Y19202002203
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell pidof app_process'
info IosDeviceTracker Ios device tracker initalized
dbug ADB Running '/U
<img width="1680" alt="Screenshot 2022-10-20 at 2 20 06 PM" src="https://user-images.githubusercontent.com/116061679/196903524-0a6dc4b2-5869-4ecd-8562-35288122e56d.png">
sers/avik/Library/Android/sdk/platform-tools/adb -P 5037 -s LKF3Y19202002203 shell cat /proc/9363/cmdline'
info ScrcpyServer Scrcpy server started on device LKF3Y19202002203 in port 8001

Attaching screenshot of the lab when opened in browser.. It is stuck at the loading page. Showed network tab also

Unable to mirror iOS Device using lab-it

Hi @sudharsan-selvaraj
After connecting ios(iPhone) device, we are not able to take control and mirror the screen.

Output of logs below

Node

$ appium-node --plugin-appium-node-hub-host=g-go-test-gojek-qa-dashboard-server-a-01 --plugin-appium-node-hub-port=4444 --port 4725 --plugin-appium-node-token 2H0HBVAR82MR7WHBWNTK1BH9CJ3P
info ADB Found 11 'build-tools' folders under '/Users/avik/Library/Android/sdk' (newest first):
info ADB     /Users/avik/Library/Android/sdk/build-tools/32.0.0-rc1
info ADB     /Users/avik/Library/Android/sdk/build-tools/31.0.0
info ADB     /Users/avik/Library/Android/sdk/build-tools/31.0.0-rc5
info ADB     /Users/avik/Library/Android/sdk/build-tools/31.0.0-rc2
info ADB     /Users/avik/Library/Android/sdk/build-tools/31.0.0-rc1
info ADB     /Users/avik/Library/Android/sdk/build-tools/30.0.3
info ADB     /Users/avik/Library/Android/sdk/build-tools/30.0.2
info ADB     /Users/avik/Library/Android/sdk/build-tools/30.0.1
info ADB     /Users/avik/Library/Android/sdk/build-tools/30.0.0-rc4
info ADB     /Users/avik/Library/Android/sdk/build-tools/29.0.3
info ADB     /Users/avik/Library/Android/sdk/build-tools/29.0.2
info ADB Using 'adb' from '/Users/avik/Library/Android/sdk/platform-tools/adb'
dbug ADB Running '/Users/avik/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
info AppiumGrid Intializing go-ios client
info AppiumNodeSocketManager Appium server is started. Registering node to appium grid in ws://g-go-test-gojek-qa-dashboard-server-a-01:4444/hub
info AppiumNodeSocketManager Node is now connected to the appium grid server
info AppiumNodeController Successfully resgisterd node to grid
info AppiumGrid Initializing Devicetracker..
info AndroidDeviceTracker Android device tracker initalized
info IosDeviceTracker Ios device tracker initalized
info DeviceStreamController Request to stop live stream for device cf162739df326c49792dcd1a4f0be8a2e4d49635

Hub logs

info SocketNodeController Got new request to resiger a node with id: e2b71540-b302-5874-89a0-63778c1291ef ,
info SocketNodeController        Host Name: Avik-Ghosh , Appium Port : 4725
info NodeManager Node is already available. So re-registering the new node
info NodeManager Succcessfully added new node : e2b71540-b302-5874-89a0-63778c1291ef
info NodeManager Total number of registered  nodes: 4
info NodeDeviceController New device connected to node e2b71540-b302-5874-89a0-63778c1291ef
info NodeManager Adding device with id cf162739df326c49792dcd1a4f0be8a2e4d49635 to node e2b71540-b302-5874-89a0-63778c1291ef
info NodeManager Total device available in node e2b71540-b302-5874-89a0-63778c1291ef : 1
info NodeSocketController Total client connect in room e2b71540-b302-5874-89a0-63778c1291ef:cf162739df326c49792dcd1a4f0be8a2e4d49635 : 0
info RemoteDeviceController Stoppping remote device streaming for device cf162739df326c49792dcd1a4f0be8a2e4d49635
info NodeManager Stopping control for device with id cf162739df326c49792dcd1a4f0be8a2e4d49635 in node e2b71540-b302-5874-89a0-63778c1291ef

Screenshot 2022-11-06 at 7 42 31 PM

phone details:
iPhone 6, ios 12.5.6

Unable to see device screen mirrored in the device lab

Unable to see device screen mirrored in the device lab

Steps to reproduce

  • Navigate to Device lab in your browser
  • Select an android device from any one of the connected nodes and take control
  • Observe the device page once it has completed loading

Expected:
Device Screen should be visible , along with it, logcat and shell functionality should be working

Actual
Device Screen is not visible, logcat and shell functionality is also not working.

Screenshot 2022-10-18 at 1 50 50 PM

There are no errors either in the hub logs or the node logs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.