qileilove

          blog已經轉移至github,大家請訪問 http://qaseven.github.io/

          Web service framework—SoapUI研究

            最近接觸到web service的一些事情,是基于腳本的自動化的一個測試過程,主要用到的是SoapUI(groovy script)。
            SoapUI的在線文檔是一個很好的資源,基于此,有一些簡單的應用分享。
            有興趣可以研究一下,自己也是一個在學習的過程,一點學習筆記分享給大家。
            Here is a sample presented that how to run test case in soapUI project and save data into DB
            Process:
            1.       Load properties file or DataSource so that fetch corresponding data
            2.       Set a request with parameters populated(data derive from properties or DataSource)
            3.       Through transfer property to save data into external files or DB
            4.       Using DataSink to export data to external files(such as excel,txt) or DB(need to connect DB)
            Screenshot of structure of one TestSuite:
            Step1: Load files( here I load file from properties file)
            PlaceName=Houston
            Step2: with data populated request
            (get data from properties under Form format)
            Step3: transfer data to target
            Also can transfer the designated data from original source to target( click on here)
           Step4: save data fetched into DB
            Need to connect database from DB list, here I select mysql as my db.
            Firstly you should download mysql-connector-java.zip from mysql website,after that, you should copy mysql-connector-java.jar to [JAVA_HOME]/ eviware/soapUI-Pro-3.5.1/jre/lib/ext, then configure connection and test it, if ok, you would fill in sql to insert data to table, as following:
            Step5: query mysql db and check if the data have been saved in DB

          posted on 2014-11-17 10:23 順其自然EVO 閱讀(215) 評論(0)  編輯  收藏 所屬分類: 測試學習專欄

          <2014年11月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          導航

          統計

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 昌吉市| 伊宁市| 定日县| 驻马店市| 盐池县| 宜川县| 安乡县| 巧家县| 建宁县| 东乡| 赣州市| 三穗县| 东辽县| 凌云县| 灵丘县| 沙洋县| 富平县| 西乡县| 贞丰县| 彭阳县| 宣威市| 盐亭县| 霍山县| 阳曲县| 涪陵区| 南川市| 丹江口市| 崇仁县| 阜平县| 宜川县| 鹰潭市| 横山县| 兴城市| 六枝特区| 修武县| 彰武县| 如皋市| 罗甸县| 惠水县| 定日县| 盐山县|