Test While You Sleep (and over Weekends)

翻译 2015年07月10日 13:53:36

Test While You Sleep (and over Weekends)

Rajith Attapattu

RELAX. I am not referring to offshore development centers, overtime on week- ends, or working the night shift. Rather, I want to draw your attention to how much computing power we have at our disposal. Specifically, how much we are not harnessing to make our lives as programmers a little easier. Are you constantly finding it difficult to get enough computing power during the work day? If so, what are your test servers doing outside of normal work hours? More often than not, the test servers are idling overnight and over the week- end. You can use this to your advantage.
• Have you been guilty of committing a change without running all the tests? One of the main reasons programmers don’t run test suites before committing code is because of the length of time they may take. When deadlines are looming and push comes to shove, humans naturally start cutting corners. One way to address this is to break down your large test suite into two or more profiles. A smaller, mandatory test profile that is quick to run will help to ensure that tests are run before each commit. All of the test profiles (including the mandatory profile—just to be sure) can be automated to run overnight, ready to report their results in the morning.
• Have you had enough opportunity to test the stability of your product? Longer-running tests are vital for identifying memory leaks and other stability issues. They are seldom run during the day, as it will tie up time and resources. You could automate a soak test to be run during the night, and a bit longer over the weekend. From 6:00 PM Friday to 6:00 AM the following Monday, there are 60 hours’ worth of potential testing time.
164
97 Things Every Programmer Should Know

• Are you getting quality time on your performance testing environment? I have seen teams bickering with each other to get time on the performance testing environment. In most cases, neither team gets enough quality time during the day, while the environment is virtually idle after hours. The servers and the network are not as busy during the night or over the weekend. It’s an ideal time to run some quality performance tests.
• Are there too many permutations to test manually? In many cases, your product is targeted to run on a variety of platforms. For example, both 32-bit and 64-bit, on Linux, Solaris, and Windows, or simply on differ- ent versions of the same operating system. To make matters worse, many modern applications expose themselves to a plethora of transport mech- anisms and protocols (HTTP, AMQP, SOAP, CORBA, etc.). Manually testing all of these permutations is very time consuming and most likely done close to a release due to resource pressure. Alas, it may be too late in the cycle to catch certain nasty bugs.
Automated tests run during the night or over weekends will ensure that all these permutations are tested more often. With a little bit of thinking and some scripting knowledge, you can schedule a few cron jobs to kick off some testing at night and over the weekend. There are also many testing tools out there that could help. Some organizations even have server grids that pool servers across different departments and teams to ensure that resources are utilized efficiently. If this is available in your organization, you can submit tests to be run at night or over weekends.

Shell脚本基础16-while循环中使用sleep命令

本文继续练习while循环语句,这里要介绍一个sleep的命令。如果写过自动化脚本,特别是selenium的同学,肯定很熟悉这个sleep。没错,sleep就是暂停的意思,例如sleep 1,表示暂停...
  • u011541946
  • u011541946
  • 2017年05月23日 21:24
  • 1613

recyclerView滚动处理

写这一章是因为需求:平滑滚动,而且滚动到的item要停留到顶部 非平滑滚动 使用LayoutManager.scrollToPositionWithOffset 方法即可 平滑滚...
  • u013818990
  • u013818990
  • 2017年02月28日 18:27
  • 1073

shell循环sleep while例子 条件判断

i=1 # 小于5等于时候才执行 while [ ${i} -le 5 ] do echo ${i} i=`expr ${i} + 1` # 休眠3秒 sleep 3 done ec...
  • u013458516
  • u013458516
  • 2016年12月13日 21:17
  • 2000

OCP-1Z0-053-V12.02-119题

119.While performing the backup of the flash recovery area, you notice that one of the archived redo...
  • rlhua
  • rlhua
  • 2013年11月05日 07:17
  • 5644

linux编程中while里面使用usleep/sleep异常的情况的解决

背景描述: 马上就要写课程设计了,这次我打算在linux上写一个类似于vi的编辑器,昨天晚上我打算先在linux上练一下手,用C++写一个控制台贪吃蛇。贪吃蛇的逻辑很简单,我主要是为了在linux上...
  • qq_32685139
  • qq_32685139
  • 2016年12月25日 19:18
  • 918

Exception while invoking getStats of class ClientNamenodeProtocolTranslatorPB over 故障分析

在执行 hdfs dfsadmin -report 命令时,出现故障Exception while invoking getStats of class ClientNamenodeProtocolT...
  • lepton126
  • lepton126
  • 2017年07月21日 10:43
  • 379

jasig cas单点登录配置笔记之五

以上配置完成后还有一点问题,就是cas client的配置完成后,登录A应用,然后登录B应用,需要重新认证. 仔细阅读文档,发现原来jasig Cas不能支持非SSL方式的统一登录.实际上登录首页...
  • rishengcsdn
  • rishengcsdn
  • 2013年09月24日 17:32
  • 7349

pthread_cond_timedwait 代替sleep

linux多线程编程,你还在用sleep么?用pthread_cond_timedwait吧 摘要:多线程编程中,线程A循环计算,然后sleep一会接着计算(目的是减少CPU利用率);存...
  • newnewman80
  • newnewman80
  • 2012年08月21日 13:16
  • 1097

Hadoop name启动为standby状态shell命令报错

16/05/25 03:13:19 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform...
  • qq_26840065
  • qq_26840065
  • 2016年05月25日 15:34
  • 1386

RTX实时平台介绍(2) – 说说Sleep(1)

关键字: RTX 实时平台 Sleep(1) 继上一篇”RTX实时平台介绍(1)-让你的Win32程序享受到实时控制的好处”, 这里我以Sleep(1)来具体展开RTX实时平台的介绍。 在工控或...
  • hongxin7
  • hongxin7
  • 2010年05月24日 14:35
  • 1591
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Test While You Sleep (and over Weekends)
举报原因:
原因补充:

(最多只允许输入30个字)