Is it posible to use android virtual machine as mobile device?

thumbnail
Angel Guillermo Hidalgo, modified 10 Years ago.

Is it posible to use android virtual machine as mobile device?

Padawan Posts: 62 Join Date: 12/20/13 Recent Posts
Hello

We validate an electronic device and we execute tests in laboratory and in the field. We are planning to use Klaros, I know it is possible to execute tests offline using Mobile Edition and after that we can synchronized the project.

The problem is when we execute test offline, we normally use a laptop, where we have installed our applications, we send commands to our devices, we take logs, and things like those. Laptop is necessary for our work. For that reason, I don't know if it is possible to install an android virtual machine like BlueStacks on the laptop and use it like a mobile?

Or what do you recommend us??

Thanks in advance for your answer.

Angel Hidalgo
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device? (Answer)

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Angel,

Now what a beautiful clever idea this is.

We have successfully tested using a BlueStacks emulator device today with the current preview server installation at http://www.klaros-testmanagement.com/preview/ which is where the App will connect to per default.

You may even use your laptop microphone and camera using the emulator, but you will probably loose the location information a real mobile device would be providing.

Sadly enough a compatibility issue is currently preventing you to use BlueStacks with the 4.0 release that you have installed, so you will only be able to test it against the preview server at the moment. This will be remedied with the release of Klaros-Testmanagement 4.1 which is due to be released this week.

Regards,

Torsten
thumbnail
Angel Guillermo Hidalgo, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 62 Join Date: 12/20/13 Recent Posts
Hi Torsten,


Currently I am testing BlueStacks with Klaros 4.1, but I can't configure the URL, user name and the password. Klaros Testmanegement is installed in my desktop computer. I have local server... The link is: http://localhost:18080/klaros-web/pages/subviews/define/project/projects.seam?conversationId=67.

What is URL, which I need to type?


Thanks in advance,


Angel Hidalgo
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Angel,

your URL would be http://localhost:18080/klaros-web in that case.

Hope this helps,

Torsten
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device? (Answer)

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Update: It may be necessary to use the external IP instead of localhost for this to work properly (thanks Heiner).
thumbnail
Angel Guillermo Hidalgo, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 62 Join Date: 12/20/13 Recent Posts
Please give me an example, because as I said to you. Klaros is installed in my desktop computer (local server - localhost) and Bluestacks as well. I have no idea how to configure an external IP in Bluestacks.

Thanks in advance

Angel Hidalgo
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Sure - please refer to the attachment.
thumbnail
Angel Guillermo Hidalgo, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 62 Join Date: 12/20/13 Recent Posts
I guess, I have to enter my IPv4 on Bluestacks configuration. I did that and I have these results (see pictures):


What's wrong??

Regards,

Angel Hidalgo
thumbnail
Fabian Klaffke, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Angel,

You need to specify the port number (18080 by default) in the Server URI field. In your case, this would result in the following URI:


http://172.16.4.177:18080/klaros-web


If you have changed the default port, you'll need to replace 18080 with the respective port number.

Regards,
Fabian
thumbnail
Angel Guillermo Hidalgo, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 62 Join Date: 12/20/13 Recent Posts
You are right. Now Bluestacks is working.

Thank you Fabian
thumbnail
Angel Guillermo Hidalgo, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 62 Join Date: 12/20/13 Recent Posts
I was testing Klaros in Bluestacks, but when I wanted to execute one of my jobs assigned, I got a message (see figure window_after_press_execute.png).


I don't know what's saying, anyway I pressed <Aceptar>.


After that, I got a window with the First Step of my Test Case. I press over <Passed> button, but the procces does not continue. It is returned to main window.

Do you know, why?

Thanks in advance

Angel Hidalgo
thumbnail
Fabian Klaffke, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Angel,

we couldn't reproduce this behaviour. Does the empty AlertDialog appear everytime you execute a Job? Have you tried executing another Job?

Otherwise it would also be helpful if you could provide us the Bluestacks log. If you're using Windows Vista or later, you can find the log at

C:\ProgramData\BlueStacks\UserData\Logs.

If you're using Windows XP, the file is located at

C:\Documents and Settings\All Users\Application Data\BlueStacks\UserData\Logs

Regards,
Fabian
thumbnail
Fabian Klaffke, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Angel,

Have you tried turning off location tracking in the app settings? If this option is turned on, the Android System tries to retrieve the location of the device via the Google Play Services API.

I suspect you're experiencing this behaviour since the BlueStacks App Player doesn't provide location information and presumably hasn't the Google Play Services installed.

Regards,
Fabian
thumbnail
Angel Guillermo Hidalgo, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 62 Join Date: 12/20/13 Recent Posts
Hi Fabian,

You are right, when <location tracking> is on. I get that problem.

I disabled it and Bluestacks are working.


Thanks so much.


Angel Hidalgo
thumbnail
Fabian Klaffke, modified 10 Years ago.

RE: Is it posible to use android virtual machine as mobile device?

Padawan Posts: 92 Join Date: 9/1/12 Recent Posts
Hi Angel,

I'm glad I could help.

I'll put a note in our documentation saying that location tracking should be turned off when using BlueStacks.

Regards,
Fabian