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

thumbnail
Angel Guillermo Hidalgo, geändert vor 10 Jahren.

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

Padawan Beiträge: 62 Beitrittsdatum: 20.12.13 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Padawan Beiträge: 62 Beitrittsdatum: 20.12.13 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Angel,

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

Hope this helps,

Torsten
thumbnail
Torsten Stolpmann, geändert vor 10 Jahren.

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

Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Update: It may be necessary to use the external IP instead of localhost for this to work properly (thanks Heiner).
thumbnail
Angel Guillermo Hidalgo, geändert vor 10 Jahren.

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

Padawan Beiträge: 62 Beitrittsdatum: 20.12.13 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Sure - please refer to the attachment.
thumbnail
Angel Guillermo Hidalgo, geändert vor 10 Jahren.

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

Padawan Beiträge: 62 Beitrittsdatum: 20.12.13 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Padawan Beiträge: 92 Beitrittsdatum: 31.08.12 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Padawan Beiträge: 62 Beitrittsdatum: 20.12.13 Neueste Beiträge
You are right. Now Bluestacks is working.

Thank you Fabian
thumbnail
Angel Guillermo Hidalgo, geändert vor 10 Jahren.

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

Padawan Beiträge: 62 Beitrittsdatum: 20.12.13 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Padawan Beiträge: 92 Beitrittsdatum: 31.08.12 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Padawan Beiträge: 92 Beitrittsdatum: 31.08.12 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Padawan Beiträge: 62 Beitrittsdatum: 20.12.13 Neueste Beiträge
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, geändert vor 10 Jahren.

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

Padawan Beiträge: 92 Beitrittsdatum: 31.08.12 Neueste Beiträge
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