qileilove

          blog已經(jīng)轉(zhuǎn)移至github,大家請(qǐng)?jiān)L問 http://qaseven.github.io/

          RFS的web自動(dòng)化驗(yàn)收測(cè)試—介紹篇

           引言:什么是RFS——RobotFramework+selenium2library,本系列主要介紹web自動(dòng)化驗(yàn)收測(cè)試方面。
            == RobotFramework的一些特性==
            易于使用,采用表格式語法,統(tǒng)一測(cè)試用例格式;
            重用性好,可以利用現(xiàn)有關(guān)鍵字來組合新關(guān)鍵字;
            支持變量;
            支持創(chuàng)建基于數(shù)據(jù)驅(qū)動(dòng)的測(cè)試用例。
            結(jié)果報(bào)告和日志采用HTML格式,易于閱讀;
            提供標(biāo)簽以分類和選擇將被執(zhí)行的測(cè)試用例;
            平臺(tái)、應(yīng)用無關(guān);
            功能全面,支持WEB測(cè)試(Selenium)、Java GUI 測(cè)試,啟動(dòng)線程、終端、SSH等;
            易于擴(kuò)展,提供了簡(jiǎn)單API,用戶可以自定義的基于Python或者Java的測(cè)試庫;
            易于集成,提供了命令行接口和基于XML的輸出文件;
            易于與版本管理集成;
            ==RobotFramework的架構(gòu)方案==
            ==RobotFramework的中文支持==
            由于初始并不支持中文,于是在生成測(cè)試報(bào)告的時(shí)候?qū)τ谥形牡年P(guān)鍵字無法識(shí)別,使用下面的方法可以正常顯示中文。
            在[PythonDir]\Lib\site-packages\robot\utils下的encoding.py文件中,找到def _get_output_encoding(): 原來的編碼是’cp437’ 將其改成’ cp936’(簡(jiǎn)體中文,gbk) 。
            ==目前robotFramework支持的測(cè)試庫==
            下面這些是可以在robotFramework上支持的測(cè)試庫,但是要獨(dú)立安裝程序。在安裝之后,使用的時(shí)候要單獨(dú)加載測(cè)試庫。
            SeleniumLibrary - A web testing library that uses popularSelenium tool internally.
            watir-robot - A web testing library that uses popularWatir tool via theremote library interface.
            WatinLibrary - A web testing library that usesWatin tool (a .NET port of Watir) via theremote library interface.
            SwingLibrary - A Swing GUI testing library.
            EclipseLibrary - A library for testing Eclipse RCP applications using SWT widgets.
            AutoItLibrary - Windows GUI testing library that usesAutoIt freeware tool as a driver.
            DatabaseLibrary (Java) - A test library that provides common functionality for testing database contents. Implemented using Java so works only with Jython.
            DatabaseLibrary (Python) - Another library for database testing. Implemented with Python and works also on Jython.
            SSHLibrary - A test library that enables SSH and SFTP.
            HTTP test library using livetest
            HTTP test library using Requests
            How-To: Sikuli and Robot Framework Integration - This is not really a library but these instructions explain how to integrateSikuli tool with Robot Framework

          posted on 2014-01-03 13:40 順其自然EVO 閱讀(385) 評(píng)論(0)  編輯  收藏 所屬分類: selenium and watir webdrivers 自動(dòng)化測(cè)試學(xué)習(xí)

          <2014年1月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 靖江市| 抚远县| 萝北县| 左权县| 海盐县| 阳山县| 琼海市| 和顺县| 镇雄县| 霞浦县| 澄城县| 霸州市| 寻乌县| 和田县| 柳河县| 政和县| 宜君县| 特克斯县| 英山县| 新龙县| 湾仔区| 霍城县| 昌图县| 武川县| 红桥区| 台江县| 塔城市| 乐至县| 彭山县| 石狮市| 蒲城县| 镇平县| 泗洪县| 同仁县| 古丈县| 丽水市| 武定县| 临颍县| 营山县| 津南区| 溧水县|