This topic is locked
[SOLVED]

 Testing a mobile page

1/9/2014 3:39:24 PM
PHPRunner General questions
S
SkyForum author

I am curious, I cannot find any information on it here anywhere. I am building a phprunner site that has multiple mobile pages. What is the easiest way to display a mobile page on my PC during the development phase? I know I can get mobile emulators but they all require that I install additional software to my development machine. Since I develop directly on my server, I do not wish to do this.
Am I missing something and if not, are you going to add this functionality to a later version to ease this process?

S
SkyForum author 1/9/2014



I am curious, I cannot find any information on it here anywhere. I am building a phprunner site that has multiple mobile pages. What is the easiest way to display a mobile page on my PC during the development phase? I know I can get mobile emulators but they all require that I install additional software to my development machine. Since I develop directly on my server, I do not wish to do this.
Am I missing something and if not, are you going to add this functionality to a later version to ease this process?


I did find Google Canary. Am able to view mobile version locally using that but still think it would be nice if a mobile viewer was built right into your product...

Sergey Kornilov admin 1/9/2014

Here is how you can do that.

  1. Build your application making sure Mobile template is enabled
  2. For mobile version testing use your favorite web browser. PHPRunner application takes into consideration several parameters like screen size and user-agent string. The easiest way is to proceed to generated application output folder and to modify include/commonfunctions.php file. Find "function isMobile()" in that file and add "return true;" as a first line of this function. You may need to log out and log in again to your web application as mobile status can be saved in the session as well.
    After this change is applied mobile version will be shown on all devices.

S
SkyForum author 1/10/2014

Thank you....

S
SkyForum author 1/11/2014

I wanted to report back on viewing the mobile page. Your way works fine but it requires that I temporarily change things around. I found a better way. Most of you probably know this but on the off chance that someone comes here that actually knows less than me, this will be helpful.
I have found Google Chrome with the developers tools in the Canary addon to be a very good way to test mobile pages. It allows you to test across a variety of mobile phone types and screen sizes.