Android 应用拆分测试的最佳实践

发布于 2024-09-10 12:42:33 字数 172 浏览 5 评论 0原文

对于网络应用程序拆分测试,通常会使用 Google Website Optimizer 等工具对各种选项进行拆分测试,以最大限度地提高其有效性。最令人印象深刻的例子之一可能是谷歌,以及它如何测试数十种蓝色色调以找到合适的一种。

开发 Android 应用程序时,是否有 A/B 测试或多变量测试的最佳实践可供遵循?

For web applications split testing various options get usually split tested to maximize their effectiveness with tools like Google Website Optimizer. One of the most impressive example might be Google and how the split tested dozens of shades of blue to find the right one.

When developing android applications are there best practices to follow for A/B testing or multivariate testing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

懒的傷心 2024-09-17 12:42:33

首先来到这里,然后继续查看结果,发现 优雅的答案
(Vincent Tsao,2011 年 5 月 12 日)

private static final boolean isA = UUID.randomUUID().getLeastSignificantBits() % 2 == 0; 

public void onCreate(Bundle savedInstanceState){ 
   super.onCreate(savedInstanceState); 

   if(isA){ 
       setContentView(R.layout.mainA); 
       MyApp.getInstance().tracker().trackPageView("/AUser"); 
   }else{ 
       setContentView(R.layout.mainB); 
       MyApp.getInstance().tracker().trackPageView("/BUser"); 
   } 
   ... 
}

我唯一的想法是保存选择,以便它们每次都返回相同的布局。

Came here first then continued down the results and came across an elegant answer.
(Vincent Tsao on 12 May 11)

private static final boolean isA = UUID.randomUUID().getLeastSignificantBits() % 2 == 0; 

public void onCreate(Bundle savedInstanceState){ 
   super.onCreate(savedInstanceState); 

   if(isA){ 
       setContentView(R.layout.mainA); 
       MyApp.getInstance().tracker().trackPageView("/AUser"); 
   }else{ 
       setContentView(R.layout.mainB); 
       MyApp.getInstance().tracker().trackPageView("/BUser"); 
   } 
   ... 
}

My only thought is to save the choice so they return to the same layout each time.

药祭#氼 2024-09-17 12:42:33

我只是在考虑这个(因此谷歌搜索将我带到了这里)。我的搜索还没有产生框架。

如果您在启动之前知道要测试的内容,那么这非常简单(理论上)。当你启动时打电话回家,询问应用程序是否应该显示 A 或 B(并在发送结果时发送用户所在的队列)。

更有可能的是,该应用程序已经发布一周了,现在您想开始测试变体。您可以上传新版本,这不是一个糟糕的主意。但是,如果您不愿意将自己限制在更新您的应用程序的人,似乎您可以从网络下载类并动态加载它们:

http://developer.android.com/reference/dalvik/system/DexFile.html
http://developer.android.com/reference/dalvik/system/DexClassLoader.html

当然,您需要知道如何处理您下载的类。我猜你的应用程序会打电话回家获取更新,然后下载一个 dex 文件和一个描述文件,说明它应该替换哪个类。

我自己还没有尝试过这个。无论你用这个做什么,我有一种感觉,事情不会那么简单。

I was just considering this (hence the Google search that brought me here). My search hasn't yielded and frameworks.

If you know before you launch what you'd like to test, it's pretty simple (in theory). Phone home when you start up and ask if the app should show A or B (and send along which cohort the user was in when you send results).

More likely, the app has been out for a week, and now you want to start testing variations. You could upload a new version, and that's not a terrible idea. But if you're not willing to restrict yourself to people who update your app, it seems you CAN download classes from the web and load them dynamically:

http://developer.android.com/reference/dalvik/system/DexFile.html
http://developer.android.com/reference/dalvik/system/DexClassLoader.html

Of course, you'll need to know what to do with the class you downloaded. I would guess your app would phone home for updates, and then download both a dex file and a description file that says which class it should replace.

I haven't tried this myself. Whatever you do with this, I have a feeling it will not be straightforward.

风柔一江水 2024-09-17 12:42:33

最好的解决方法是构建一个可通过移动网络浏览器访问的移动应用程序。所以你可以实现 a/b 资源,例如优化或其他。但你失去了原生应用程序的好处。如果您尝试像在网络上一样对本机应用程序进行 a/b 测试。很抱歉你运气不好,至少据我所知

The best workaround would be to build a mobile app accessible through mobile web browser. So you could implement a/b resource like optimizely or something. You loose the benefit of having the native app feel though. If you are trying to a/b testing native app like you would on the web. I'm sorry you are out of luck, well at least to my knowledge

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文