欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

關(guān)于項(xiàng)目自動(dòng)化測(cè)試架構(gòu)的改良計(jì)劃-讀取原始xml文件

按照我們的架構(gòu),第一步是讀取原始的xml文件到一個(gè)xml字符串中:

創(chuàng)新互聯(lián)公司專注于企業(yè)全網(wǎng)營(yíng)銷推廣、網(wǎng)站重做改版、贛榆網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5建站、購(gòu)物商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站制作、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁(yè)設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為贛榆等各大城市提供網(wǎng)站開(kāi)發(fā)制作服務(wù)。

/**
 *
 *@author cwang58
 *@created date: Jun 10, 2013
 */
public class XMLReader {
                                    
    private static final String LINE_SEPARATOR=System.getProperty("line.separator");
    private static String userDir = System.getProperty("user.dir");
    private static final String fileSeparator=System.getProperty("file.separator");
    private static final String dataFileName="test_suite.xml";
                                    
    /**
     * build the data file path which depends on the platform
     * @param projectName
     * @return
     */
    public static String buildDataFilePath (String projectName){
        return userDir+fileSeparator+"src"
                      +fileSeparator+"test"
                      +fileSeparator+"resources"
                      +fileSeparator+projectName
                      +fileSeparator+"data"
                      +fileSeparator+dataFileName;
                                                      
    }
                                    
    /**
     * read the file content then store contant into a string
     * @param source the file source name
     * @return
     * @throws IOException
     */
    public static String readContentFromFile(String source) throws IOException{
        File file = new File(source);
        // open a file reader to read the file content
        FileInputStream fis = null;
        InputStreamReader isr = null;
        BufferedReader reader = null;
        try {
                                        
            fis = new FileInputStream(file);
            isr = new InputStreamReader(fis, "utf-8");
            reader = new BufferedReader(isr);
            StringBuffer bufferedFileContent = new StringBuffer();
            String line = null;
            while ((line = reader.readLine()) != null) {
                bufferedFileContent.append(line).append(LINE_SEPARATOR);
            }
            return bufferedFileContent.toString();
        } catch (FileNotFoundException ex) {
            ex.printStackTrace();
            return null;
        } finally {
            if(reader!=null)
                reader.close();
            if(isr!=null)
                isr.close();
            if(fis!=null)
                fis.close();
        }
    }

代碼很簡(jiǎn)單,就是一個(gè)基于文件流的操作,不再自己講解。這個(gè)步驟對(duì)于架構(gòu)圖的第一步。

新聞標(biāo)題:關(guān)于項(xiàng)目自動(dòng)化測(cè)試架構(gòu)的改良計(jì)劃-讀取原始xml文件
標(biāo)題路徑:http://aaarwkj.com/article2/pjdjoc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供、小程序開(kāi)發(fā)網(wǎng)站策劃、Google、建站公司網(wǎng)站改版

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都app開(kāi)發(fā)公司
在线国产精品中文字幕| 欧美精品激情在线不卡| 国产成人综合亚洲欧美在线| 九九热九九热九九热九| 国产精品日韩精品在线| 亚洲av日韩综合一区尤物| 日本中文有码视频在线观看| 亚洲精品主播一区二区三区| 国产三级精品av在线| 亚洲字幕中文在线乱码mv| 日韩中文字幕一二一二区| 麻豆蜜桃精品视频在线观看| 亚洲精品一区二区成人影院| 91精品超碰人人在线公开| 亚洲一区二区三区香蕉不卡| 国产精品一区二区毛卡片| 亚洲一区二区三区小蜜桃 | 中文字幕精品人妻丝袜| av天堂精品一区二区三区| 黄片小视频在线免费播放| 日韩欧美一区二区三区不卡在线 | 少妇视频资源一区二区三区| 日本人妻精品在线观看| 久久精品国产亚洲熟女| 欧美性生活在线视频观看| 自拍偷拍一区蜜桃视频| 精品国产av一区二区麻豆| 亚洲精品aa片在线观看国产| 日韩三级视频一区二区| 亚洲午夜精品久久久天堂 | 欧美日韩精品国产精品| 日韩精品激情视频在线| 成人做爰片免费看视频| 五月婷婷六月丁香在线观看| 天堂中文字幕在线乱码一区| 国产精品妇女一二三区| 亚洲中文字幕精品视频乱码| 久久久精品国产亚洲av网黑人| 色哟哟亚洲精品一区二区| 国产激情av网站在线观看 | 岛国av不卡一二三区|