Jitu1888 / ios-device-lab

This repo is created for Ios stf project
Other
3 stars 0 forks source link

Cannot run the ./run #2

Open zaw-hlaing-bwar opened 4 months ago

zaw-hlaing-bwar commented 4 months ago

First of all, I really thank you for the amazing repo and the guide @Jitu1888 Currently, I am having a weird error

image

Whenever I run it, it's saying that I don't have a node repo in my nvm folder and I don't have iOS-deploy in bin folder too.

image

But when I check, there is the folders and has permission as well.

I would like to know how to debug and possibly if there is a solution. Thank you

rajeshj93 commented 3 months ago

@zaw-hlaing-bwar i am unable to build the webdriveragent through make file but thorugh xcode am able to build. Getting below error... Webdriveragent build failed as no account found

Can you please suggest how did you overcome this issue ?

Jitu1888 commented 3 months ago

jenkins-lab4@jenkins-lab4 stf_ios_support % ./run --debug Loading config Config loaded Changing directory to /Users/jenkins-lab4/Documents/Backup/stf_ios_support WARN[0000] Debugging enabled type=debug_status DEBU[0000] Starting ZMQ Pull
DEBU[0000] Starting ZMQ ReqRep
DEBU[0000] Starting ZMQ Pub
DEBU[0000] Portmap dev_ios_ports="map[9240:0xc000014094 9241:0xc000014095 9242:0xc000014096 9243:0xc000014097 9244:0xc000014098 9245:0xc000014099 9246:0xc00001409a 9247:0xc00001409b 9248:0xc00001409c 9249:0xc00001409d 9250:0xc00001409e]" type=portmap usbmuxd_ports="map[9920:0xc0000140b5 9921:0xc0000140b6 9922:0xc0000140b7 9923:0xc0000140b8 9924:0xc0000140b9 9925:0xc0000140ba 9926:0xc0000140bb 9927:0xc0000140bc 9928:0xc0000140bd 9929:0xc0000140be 9930:0xc0000140bf]" vid_ports="map[8000:0xc00001408e 8001:0xc00001408f 8002:0xc000014090 8003:0xc000014091 8004:0xc000014092 8005:0xc000014093]" vnc_ports="map[5901:0xc00001409f 5902:0xc0000140a0 5903:0xc0000140a1 5904:0xc0000140a2 5905:0xc0000140a3 5906:0xc0000140a4 5907:0xc0000140a5 5908:0xc0000140a6 5909:0xc0000140a7 5910:0xc0000140a8 5911:0xc0000140a9]" wda_ports="map[8100:0xc000014088 8101:0xc000014089 8102:0xc00001408a 8103:0xc00001408b 8104:0xc00001408c 8105:0xc00001408d]" DEBU[0000] HTTP server started type=http_start INFO[0000] Process start - device_trigger binary=bin/ios-deploy proc=device_trigger type=proc_start INFO[0000] Process start - stf_ios_provider binary=/Users/jenkins-lab4/.nvm/versions/node/v18.16.1/bin/node client_hostname=jenkins-lab4 client_ip=192.168.113.95 location=macmini/jenkins-lab4 proc=stf_ios_provider server_hostname=jenkins-lab4 server_ip=192.168.113.95 type=proc_start DEBU[0000] Event loop start type=event_loop_start DEBU[0000] Process pid pid=99149 proc=stf_ios_provider type=proc_pid DEBU[0000] Process pid pid=99150 proc=device_trigger type=proc_pid INFO[0000] Device object created dev_ios_port=9240 dev_name="Indranils iPhone" dev_uuid="a404" type=devd_create usbmuxd_port=9920 vid_port=8000 vnc_port=5901 wda_port=8100 INFO[0000] Device connected dev_name="Indranils iPhone" dev_uuid="a404" type=dev_connect INFO[0000] Process start - ivf binary=bin/ivf_pull outSpec="tcp://127.0.0.1:7879" proc=ivf type=proc_start uuid="a404" INFO[0000] Process start - ios_video_stream binary=bin/ios_video_stream port=8000 proc=ios_video_stream pullSpec="tcp://127.0.0.1:7879" tunName=en0 type=proc_start uuid="a404" INFO[0000] Process start - video_enabler binary=bin/video_enabler proc=video_enabler type=proc_start uuid="a404" DEBU[0000] Process pid pid=99158 proc=video_enabler type=proc_pid uuid="a404" DEBU[0000] Process pid pid=99157 proc=ios_video_stream type=proc_pid uuid="a404" DEBU[0000] Process pid pid=99156 proc=ivf type=proc_pid uuid="a404" String to parse:{"type":"frame1","width":750,"height":1334,"clickScale":1000,"uuid":"e7f4f07a52341c39457288c85a5caaa473eba404" trying to get ios version DEBU[0002] IOS Version dev_name="Indranils iPhone" dev_uuid=e7f4f07a52341c39457288c85a5caaa473eba404 ios_version=15.3.1 type=ios_version INFO[0002] Video - first frame clickScale=1000 height=1334 proc=ios_video_stream type=first_frame uuid="a404" width=750 INFO[0002] Process start - wdaproxy --iosDeploy=bin/ios-deploy binary=../wdaproxy iosVersion=15.3.1 proc=wdaproxy type=proc_start uuid="a404" wdaPort=8100 DEBU[0002] Process pid pid=99161 proc=wdaproxy type=proc_pid uuid="a404" INFO[0009] WDA Running proc=wdaproxy type=wda_started uuid="a404" DEBU[0009] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"connect\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"Indranils iPhone\",\"VidPort\":\"8000\",\"WDAPort\":\"8100\"}" type=zmq_pub DEBU[0009] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"present\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub Status response: {"value":{"build":{"productBundleIdentifier":"com.facebook.WebDriverAgentRunner","time":"Jan 6 2024 15:10:09"},"device":{"name":"whocares","udid":"e7f4f07a52341c39457288c85a5caaa473eba404"},"ios":{"ip":"192.168.114.242"},"message":"WebDriverAgent is ready to accept commands","os":{"name":"iOS","sdkVersion":"17.0","testmanagerdVersion":65535,"version":"15.3.1"},"ready":"true","state":"success"},"status":0} INFO[0013] Fetched WDA session id=73859BCA-D27F-4085-9145-5ABC52C2D488 type=wda_session uuid="a404" window size response: { "value" : { "width" : 375, "height" : 667 }, "sessionId" : "73859BCA-D27F-4085-9145-5ABC52C2D488" } INFO[0014] Fetched device screen dimensions height=667 type=device_dimensions uuid="a404" width=375 INFO[0014] Process start - stf_device_ios binary=/Users/jenkins-lab4/.nvm/versions/node/v18.16.1/bin/node clickHeight=667 clickScale=1000 clickWidth=375 client_ip=192.168.113.95 device_name="Indranils iPhone" frame_server="ws://192.168.113.95:8000/echo" node_port=9240 proc=stf_device_ios server_host=jenkins-lab4 server_ip=192.168.113.95 stream_height=1334 stream_width=750 type=proc_start uuid="a404" video_port=8000 vnc_scale=2 DEBU[0014] Process pid pid=99185 proc=stf_device_ios type=proc_pid uuid="a404" DEBU[0015] Device IOS Unit Ready proc=stf_device_ios type=device_ios_ready uuid="a404" DEBU[0015] Device IOS Unit Registered Identity proc=stf_device_ios type=device_ios_ident uuid="a404" DEBU[0019] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0029] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0039] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0049] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0059] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0069] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0079] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0089] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0099] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0109] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0119] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0129] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0139] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0149] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0159] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub DEBU[0169] devEvent msg to stf_ios_provider coro=pub fields.msg="{\"Type\":\"heartbeat\",\"UUID\":\"e7f4f07a52341c39457288c85a5caaa473eba404\",\"Name\":\"\",\"VidPort\":\"0\",\"WDAPort\":\"0\"}" type=zmq_pub

We need to change the node path in 4 files? @zaw-hlaing-bwar

Jitu1888 commented 3 months ago
  1. proc_device_unit.go
  2. proc_stf_provider.go
  3. config.go
  4. config.json First change and try again. I will remove this hardcoded path @zaw-hlaing-bwar @rajeshj93
rajeshj93 commented 3 months ago

@Jitu1888 sure will give a try