读书人

RFS的web自动抽验收测试RobotFram

发布时间: 2012-09-20 09:36:50 作者: rapoo

RFS的web自动化验收测试——RobotFramework2.7.4更新发布了

引言:什么是RFS——RobotFramework+Selenium2library,本系列主要介绍web自动化验收测试方面。

@齐涛-道长 新浪微博)

9月6日的时候robotframework的官网(http://code.google.com/p/robotframework/)发布了RF2.7.4版本,有需要的朋友可以升级一下。

更新说明:http://code.google.com/p/robotframework/wiki/ReleaseNotes27#Robot_Framework_2.7.4

第一眼就看到的是开始支持ELSE和ELSE IF分支语句了,眼前一亮~终于可以进一步完善脚本了,这样有了FOR-LOOP,又有了Else和Else if,循环和分支就齐全了。

${ret} =Run Keyword If${rc} == 0Handle Zero Return Value ...ELSE IF${rc} < 0Handle Negative Return Value${rc}...ELSEHandle Positive Return Value${rc}second arg

另一个是增加了一个XML的库,支持XML的一些方法,以前他也能支持,不过要另外单独下载,这次直接包含到RF里面了。

PS:RIDE0.50也悄无声息的在9月11日发布了,看到俺提的那个bug修复了,下载地址https://github.com/robotframework/RIDE/downloads

附原文:

Robot Framework 2.7.4

Robot Framework 2.7.4 is a bigger-than-normal minor release that brings some really nice new enhancements and some bug fixes. It was released on Thursday 6th of September, 2012.

Most important enhancements

New library for verifying XML contents

New standard library XML makes verifying XML contents with Robot Framework easy ( issue 1196 ). This library works also with earlier 2.7 versions, but needs to be downloaded separately.

Enhanced statistics

Statistics nowadays contain elapsed times per suite and per tag ( issue 1194 ) to make it easier to monitor which tests take most time. Elapsed times also have their own column in test details ( issue 1206 ) to ease further investigation.

Statistics are also sortable, for example, by elapsed times ( issue 1199 ). A small but convenient new feature is that clicking anywhere in the statistics row, as well as in test detail row, navigates to more details ( issue 1200 ). No need to move mouse over the tag, suite, or test name before clicking.

ELSE and ELSE IF support for Run Keyword If keyword

It is easier to create if/else constructs now that Run Keyword If has built-in support for them ( issue 1219 ). This is especially handy when you want to get the return value of the actually executed keyword:

${ret} =Run Keyword If${rc} == 0Handle Zero Return Value ...ELSE IF${rc} < 0Handle Negative Return Value${rc}...ELSEHandle Positive Return Value${rc}second arg

Potentially backwards-incompatible changes

It is possible, but very unlikely, that the changes listed below could cause backwards-compatibility problems.

读书人网 >Web前端

热点推荐