eclipse 我需要在不同的虚拟设备上测试我的应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17885454/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
I need to test my app on different virtual devices
提问by Guy
So I'm currently helping to develop an app and I've been asked to test it on as many devices (virtual/non virtual) as possible and then make it adjust it to as many different screen sizes and even tablets as possible.
所以我目前正在帮助开发一个应用程序,我被要求在尽可能多的设备(虚拟/非虚拟)上对其进行测试,然后将其调整为尽可能多的不同屏幕尺寸甚至平板电脑。
Now I'm not sure where exactly to start because I don't know if Android Virtual Device Manager in Eclipse has every possible screen combination.
现在我不确定从哪里开始,因为我不知道 Eclipse 中的 Android 虚拟设备管理器是否具有所有可能的屏幕组合。
So, would setting up and running all of the 21 virtual devices in Eclipse do the job? Or is there something else I should try doing? Any kind of information would be helpful, thank you!
那么,在 Eclipse 中设置和运行所有 21 个虚拟设备是否能完成这项工作?或者还有什么我应该尝试做的吗?任何类型的信息都会有帮助,谢谢!
采纳答案by Darryl Bayliss
You need to weigh up how much virtual testing will achieve the desired amount of consistency you want between all possible device screens, testing on as much devices as possible would simply be a waste of your time because many devices have similar screen densities, resolutions and features that don't really effect how your view is presented unless you have placed your objects at static points. For example using pixel (px) measurements instead of density independent pixel (dp) measurements when setting your views.
您需要权衡多少虚拟测试将在所有可能的设备屏幕之间实现所需的一致性,在尽可能多的设备上进行测试只会浪费您的时间,因为许多设备具有相似的屏幕密度、分辨率和功能除非您将对象放置在静态点,否则这不会真正影响您的视图的呈现方式。例如,在设置视图时使用像素 (px) 测量而不是密度无关像素 (dp) 测量。
My advice would be to set up about 10 AVD's with varying screen sizes, densities and features. Test your app on these and collate any oddities you spot between each device. If they are occurring at a specific resolution or screen density then you can begin to narrow down the possible reasons why the oddity is occurring.
我的建议是设置大约 10 个具有不同屏幕尺寸、密度和功能的 AVD。在这些设备上测试您的应用程序并整理您在每台设备之间发现的任何奇怪之处。如果它们以特定的分辨率或屏幕密度发生,那么您可以开始缩小出现奇怪现象的可能原因。
Of course there isn't any real replacement for a physical device so the more physical devices you can test on the better.
当然,物理设备没有任何真正的替代品,因此您可以测试的物理设备越多越好。
回答by buczek
If you need to test for specific devices, Samsung has a remote test lab, this way you can test real devices virtually and a large variety of devices.
如果您需要测试特定设备,三星有一个远程测试实验室,这样您就可以虚拟测试真实设备和各种设备。
Additionally, you can use the Amazon Device Farmwhich has Samsung phones as well as other Android, Fire, and iOS phones.
此外,您可以使用拥有三星手机以及其他 Android、Fire 和 iOS 手机的Amazon Device Farm。
回答by user3661117
And another testing service with real and virtual devices that you can remotely control is testobjectIt is just for Android apps at the moment, but still a really nice tool to test with.
另一个可以远程控制真实和虚拟设备的测试服务是testobject它目前仅适用于 Android 应用程序,但仍然是一个非常好的测试工具。
回答by hopia
There's a few mobile app testing services that are available. These services include remote virtual access to most major devices available. Note these are real devices and some actually have live connections to some of the most popular telecoms.
有一些可用的移动应用程序测试服务。这些服务包括对可用的大多数主要设备的远程虚拟访问。请注意,这些是真实设备,有些实际上与一些最流行的电信设备有实时连接。
Here are three of them:
以下是其中三个:
回答by Enrichman
You cannot test "every" device, it's almost impossible (and probably a waste of time).
您无法测试“所有”设备,这几乎是不可能的(并且可能是浪费时间)。
You should check specifically for the most common devices (like Samsung S2/S3/S4) and other common resolutions. To find out which one are the most popular I suggest you to visit this page. It contains data about all the devices that visited the Google Play Store in the prior 14 days.
您应该专门检查最常见的设备(如三星 S2/S3/S4)和其他常见分辨率。要了解哪一个最受欢迎,我建议您访问此页面。它包含有关在过去 14 天内访问过 Google Play 商店的所有设备的数据。
回答by Looking Forward
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
Add this to your manifest file of app.
将此添加到您的 app.js 清单文件中。
回答by JustDoingIt
In Android Virtual Device Manager you can create any device you want. Then just create or use existing virtual device to check support for general screen categories http://developer.android.com/guide/practices/screens_support.html#qualifiers
在 Android 虚拟设备管理器中,您可以创建您想要的任何设备。然后只需创建或使用现有的虚拟设备来检查对一般屏幕类别的支持http://developer.android.com/guide/practices/screens_support.html#qualifiers
回答by SWright
Experitest's SeeTestAutomation can provide you with the ability to create one script on the app to run on all devices, real or emulators (same OS or even different OS) Here is a link to the SeeTest online guide: http://experitest.com/studio/help2/WebHelp/help.htmIt is recommended to start with the "Getting Started" section.
Experest 的 SeeTestAutomation 可以为您提供在应用程序上创建一个脚本以在所有设备、真实设备或模拟器(相同操作系统甚至不同操作系统)上运行的能力这里是 SeeTest 在线指南的链接:http://expertest.com/ studio/help2/WebHelp/help.htm建议从“入门”部分开始。