qileilove

          blog已經(jīng)轉(zhuǎn)移至github,大家請訪問 http://qaseven.github.io/

          Web service framework—SoapUI研究

            最近接觸到web service的一些事情,是基于腳本的自動化的一個測試過程,主要用到的是SoapUI(groovy script)。
            SoapUI的在線文檔是一個很好的資源,基于此,有一些簡單的應(yīng)用分享。
            有興趣可以研究一下,自己也是一個在學(xué)習(xí)的過程,一點學(xué)習(xí)筆記分享給大家。
            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 閱讀(212) 評論(0)  編輯  收藏 所屬分類: 測試學(xué)習(xí)專欄

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

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 乌苏市| 石渠县| 凤阳县| 浪卡子县| 方山县| 巴彦淖尔市| 施秉县| 崇信县| 淮南市| 灵璧县| 祁阳县| 武功县| 赫章县| 乐业县| 奎屯市| 军事| 迁西县| 甘孜| 大渡口区| 天峻县| 理塘县| 原阳县| 大余县| 辽中县| 潞城市| 门头沟区| 什邡市| 玉田县| 德兴市| 西吉县| 白城市| 沾益县| 和林格尔县| 儋州市| 西贡区| 南平市| 乐平市| 察雅县| 林芝县| 柳州市| 永德县|