How to run development app in mobile mode

How could I test my apps in mobile mode will in development, without having to post to production, then open on my mobile?

Most browsers will allow you to emulate mobile screen sizes.
Firefox

Alternatively you can connect your mobile device to the same network as your development machine and navigate directly to the URL used when testing from the local browser on your dev machine.
For example:
http://<ip address>:8091/scriptcase/app/samples/menu

1 Like

Hi bgilmore!
I’m trying to test my app on my smartphone, but I get: It can’t get to this site 127.0.0.1
Is there another way that I can try to do that?

Hi,
127.0.0.1 is a localhost io, you cannot reach this address from another device. you need to know the address of the pc where you have installed SC.
https://support.microsoft.com/en-us/windows/find-your-ip-address-in-windows-f21a9bbc-c582-55cd-35e0-73431160a1b9

2 Likes

Thanks marcosc!! it worked great with the IP assigned to my laptop.
However when I got back to my laptop, scriptcase detected that there was another user logged in. I chose to disconnect the smartphone and I can no longer connect again. Is my smartphone’s IP blocked? My laptop’s IP remanis the same…

hi,
if you have only one license you have to connect directly to the app you want to test otherwise if you log in to SC your smartphone will occupy the scriptcase license.

http://XXX.XXX.XXX.XXX:80XX/scriptcase/app/YOURPROJECT/YOURAPPLICATION/YOURAPPLICATION.PHP

1 Like

Hi,

There is no need for a license when it comes to testing the website as a visitor / user of the app.

I prefer testing with google chrome by example How to view Mobile Version of a Website on Chrome | BrowserStack

1 Like

After checking the firewall and multiple network configurations, it turned out that in our network there are two Access Points, and for some reason my smartphone connected to the other. Everything is back to normal now. Thanks a lot mafcosc!

Hi Yannick!
I agree with you in terms of screen size, fonts and appereance in general is a great tool, but what I needed was to test upladoing pictures taken form the phone directly to the app.

Just to be more precise. Two Access Points does not matter. What matters is two SSIDs. Both Server and testing device must be connected to the same netwrk, this is, to the same SSID.