Tag: 基准testing

什么是unit testing和集成testing,以及我应该了解哪些其他types的testing?

我见过其他人提到Stack Overflow的几种types的testing。 我能记得的是unit testing和集成testing。 尤其是unit testing提到了很多。 什么是unit testing? 什么是集成testing? 我应该知道哪些其他重要的testing技术? 编程不是我的职业,但我希望有一天能够做到,也欢迎制作等方面的东西。

jsPerf如何工作?

今天我访问了jsPerf ,现在我想知道… 什么是“ops / sec”? 它做了多less次迭代? 它在什么基础上计算哪个更快? 这些计算背后的公式是什么? 例如: http : //jsperf.com/concatenation-vs-join 谁能告诉我? 提前致谢。

警告:与依赖冲突com.android.support:support-annotations'

我已经尝试了书中几乎所有的技巧。 ResolutionStrategy.force 不包括模块 但似乎没有任何工作,下面是我的build.gradle。 我正在使用Gradle版本1.2.3。 有人可以抛出我的代码还有什么可能是错的。 我没有尝试过的唯一的事情就是改变Gradle的版本。 这是一个非常基本的咖啡testing案例。 谢谢! apply plugin: 'com.android.application' android { configurations.all { resolutionStrategy.force 'com.android.support:support-annotations:22.1.0' } compileSdkVersion 22 buildToolsVersion "21.1.2" defaultConfig { applicationId "com.example.rasika.job" minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { mavenCentral() } dependencies […]

OS X 10.7.1上的httperf分段错误错误

当我尝试使用高请求率的httperf执行负载testing时,出现以下错误: » httperf –client=0/1 –server=www.xxxxx.com –port=80 –uri=/ –send-buffer=4096 –recv-buffer=16384 –num-conns=200 –rate=30 httperf –client=0/1 –server=staging.truecar.com –port=80 –uri=/ –rate=30 –send-buffer=4096 –recv-buffer=16384 –num-conns=200 –num-calls=1 httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE **Segmentation fault: 11** 当“比率”> 15时,错误就会上升 版本: httperf 0.9.0 OS X 10.7.1

Selenium WebDriver偶尔抛出Timeoutexception

在我们的项目中使用selenium进行UItesting。 我们正在运行最新的版本2.30.0。 我们使用Firefox WebDriver并运行Firefox 19.0。 一般来说,当我在Visual Studio中运行uitesting时,uitesting在本地甚至服务器端工作。 我们的uitesting在我们的构build服务器上执行得很快。 它使用相同的部署在我通过Visual Studio手动testing的同一台服务器上。 但是当uitesting在buildserver上执行时偶尔遇到以下问题: Test(s) failed. OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:7056/hub/session/bed1d0e7-efdc-46b6-ba07-34903519c44d/element/%7B8717bb19-96c7-44d3-b0ee-d4b989ae652d%7D/click timed out after 60 seconds. —-> System.Net.WebException : The operation has timed out at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request) at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) –WebException at System.Net.HttpWebRequest.GetResponse() at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request) 基本上,testing点击一个上传button,其中input字段之前填充了一个文件。 由于该文件非常小,因此可以在几秒钟内完成。 […]

突变检测在实践中是否有用?

你有任何实际应用突变检测的例子吗? 它比简单的testing覆盖工具更好吗? 还是没用? 现实世界中突变检测的优点和缺点是什么?

HTTPS与HTTP速度比较

更新2013-04-25: 这是一个受欢迎的问题,正在得到更多的关注比它应该。 为了阻止错误信息的传播,请阅读以下段落和相关文章: 速度不应该是决定是否使用HTTPS或HTTP的一个因素。 如果您的站点的任何部分(login,注册,信用卡等) 都需要HTTPS , 那么您绝对需要HTTPS 。 请阅读SSL不是关于由Troy Hunt encryption的原因。 我认为在https下运行我的整个电子商务网站。 我决定运行一个粗略的基准,通过https和http来衡量一个156KB的图像的下载时间,因为我已经读过了https加载过程中的额外开销。 使用Firefox的Firebug进行基准testing时,只需从空的caching中下载图像时,从networking面板上将“等待”和“接收”时间(所有其他时间为0)转录到Excel。 我的结果是意外的: http: 11.233 seconds Waiting Receiving Total 1.56 0.88 2.44 1.55 0.101 1.651 1.53 0.9 2.43 1.71 0.172 1.882 1.9 0.93 2.83 https: 9.936 seconds Waiting Receiving Total 0.867 1.59 2.457 0.4 1.67 2.07 0.277 1.5 1.777 0.536 1.29 1.826 […]

示例数据库练习

我想玩更大的数据库来testing我对SQL的知识。 有一个巨大的.sql在那里,我可以用来玩SQL查询?

有没有一个IEtesting的Mac?

我想在Mac的不同版本的IE上testing我的网站,有没有什么软件?

JUnit是编写性能testing的正确工具吗?

在上个星期,我创build了两个class级,我的团队对他们的performance表示了一些担忧。 为了评估我的代码,我编写了一些简单的JUnittesting,通过构build丰富的testing数据集来执行这些类,然后通过相关的方法提供数据以进行数千次迭代。 我logging了每次迭代的运行时间,然后使用循环和System.nanoTime()注销高,低和平均时间。 最后,我有JUnit断言高和平均时间在可接受的范围内。 这个testing方法给了我的团队对这个代码的信心。 JUnit是以这种方式testing性能的正确工具吗? 是否有更好的工具来testing单元(方法和类)的性能?