How to run automation scripts on remote Appium server using public IP? - appium

I have deployed automation script in remote ubuntu-server and i want to execute those script on my local system where appium server is running.I have googled for the answer but all the solutions work only if both the device are connected to same wifi network
Please suggest me the solution to run the script in my local system where Appium server exist.

Where is the device - is It connected at ubuntu-Server?
Where is appium server running?
Where are the test scripts?
I have tried in this way and it worked.
Test scripts are available in System-1
Appium Server & Devices are available in another system. Where devices are connected through a physical cable.
With this approach, I am able to run the scripts remotely from my machine.
Observations: We can try out through accessing devices through WIFI (adb wifi google it). But if wifi fluctuates then appium session will be terminated. To avoid all these go with the physical usb connection.

Related

How to connect to localhost on a real device in react native on iOS?

I have a server running on localhost:5000 on my desktop, and when I make http requests through my react-native app when running on the iOS simulation to it, it works. However, when I connect to a real device, the http requests don't work. What am I doing wrong? Is there something I have to configure?
localhost in your desktop is not the same ip of the localhost of your device.
Get the ip of your computer by typing ifconfig in a terminal, then replace localhost by this ip, you should type something like that in your device browser:
192.168.0.23:5000
Maybe my answer is too late but I ran into a similar situation today and I got it to work by running my node server using the IPv4 of my desktop and then making the request to that IP.
For example, I am running my nodejs development server at http://192.168.0.135:3000(local IP of my desktop) instead of localhost and then I make the fetch API request from my react-native app to http://192.168.0.135:3000/.
Just make sure your nodejs server and your app are on the same local network. My react-native server (metro bundler) is running on a separate PC also in the same wifi network.
If your are on macOS go to settings -> Wifi / and show more,
on bottom you see "IP address", it's your correct localhost for ios physical device !

Network port not showing after running BasicOTA in ArduinoIDE for ESP8266 on Mac

I've just recently got an NodeMCUv3 ESP8266 and I've been trying to use the Arduino IDE 1.8.8 to program it on my Mac.
I've successfully installed ch340* drivers and I can flash the ESP8266 using USB wire cable.
But after flashing the BasicOTA example (modified to connect to my WiFi), I am not seeing my NodeMCU listed as a network port. I only see a list of Serial ports even after restarting ArduinoIDE and NodeMCU.
I tried Bonjour Browser to discover my NodeMCU device and I cannot see it on the net as well.
Could you please suggest any ideas what could be the problem for appearing the network port for NodeMCU device in the ArduinoIDE?
The problem was solved by adding the line
MDNS.update();
into loop() function.
If you are using windows
1. Install Bonjour
2. Exit the IDE, Disable the network adapters, Enable & connect the network adapters, Start the IDE
3. Disable IPV6 on your network adapters
4. Open the INBOUND port for Python.exe (with the full path)
Hopefully if you do all this, you should be able to do OTA

React-Native Could not connect to development server

I've been testing my project on my iPhone6s and it worked perfectly. But today Xcode and Node.js keeps giving me the 'Unable to execute JS call: __fbBatchedBridge is undefined' error.
I'm sure the IP address is correct, my phone is under the same Wifi network with server. The simulator works fine with the server ip. To test if it is something wrong with the project I start another AwesomeProject and changed the IP but still not working. Anyone know any possible solutions?
I faced the same issue in my office Wifi network connection also. This is because of the router configuration. There are two ways to make it work.
Expose the local server using ngrok. But, It will be slow since it is sending everything to server.
Connect your phone using USB cable and type the following command in the computer adb reverce tcp:8081 tcp:8081

Meteor JS Can connect to compose.io on everything except iOS device?

I have been working on an application and using compose.io as my database platform. I am able connect to compose in web browser and iOS simulator with:
MONGO_URL="mongodb://myUsername:myPassword#aws-us-east-1-portal.6.dblayer.com:11111/dbName" meteor (run , run ios)
However when I try the same process with run ios-device --mobile-server, or ios-device --mobile-server -p 127.0.0.1:3000 it just keeps creating a local database instance. In Meteor documentation it says may need developer account, but I am assuming that was outdated as of Xcode 7 testing on your own device was free, unless this does not count for database connections.
Any ideas, is my command line string incorrect, or is a developer account required? Maybe something else.
Thanks!
I was able to solve my issue by disabling my cellular network, so that my mobile device(iPhone) and local machine(Mac) were using the same network(Wifi) guaranteed. Be to delete any exiting instance your Meteor app your device before running the following while the device and local machine are on the same network.
MONGO_URL="mongodb://myUsername:myPassword#aws-us-east-1-portal.6.dblayer.com:11391/dbName" meteor run ios-device

How can I make a PyCharm server running locally available to iPhone on same network

I am developing a backend server for an app using PyCharm. This runs on my laptop as 127.0.0.1:8000
I need to access this server for testing from an iPhone. This is connected by wifi to my local network to which the laptop is also connected.
I have tried entering http://mycomputer.local:8000 in safari on the iPhone but I get the message "Safari could not open the page because the server stopped working. I am using the real name of my computer instead of 'mycomputer'.
I am running OS X Yosemite so Web Sharing is not available in System Preferences.
How can I give access to the 127.0.0.1:8000 server to my iPhone?
When you say "backend server", what is the Python project written in? Django, Flask, Pyramid, something else?

Resources