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

關(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ā)公司
18禁在线免费观看网站| 91国产熟女自拍视频| 能在线播放的国产三级| 精品av一区二区在线| 日本一区中文字幕欧美| 日韩av亚洲在线观看| 午夜理论片在线观看有码| 日产一区二区三区网站| 国产不卡高清视频在线| 尤物资源视频在线观看| 丁香色婷婷国产精品视频| 草逼免费在线观看视频| 欧美日韩中文字幕精品| 亚洲日本国产一区二区| 欧美二区三区精品在线| 在线观看高清欧美国产视频| 亚洲激情在线观看一区| 蜜桃av网站在线播放| 丝袜美腿一区二区三区动态图 | 日韩av黄色制服在线网站| 81精品国产综合久久精品伦理| av熟女一区二区三区| 蜜臀久久精品亚洲一区| 女同久久精品国产精品天堂99| 中文字幕乱码人妻一二三| 日本人妻风俗店中文字幕 | 久久综合给合综合久久| 亚洲av第一区综合激情久久久| 91大片在线观看视频| 欧美亚洲精品在线观看| 亚洲成人爱情动作片在线观看| 亚洲精品国产精品成人 | 中国亚洲黄色录像免费看| 99热视频在线观看免费| 亚洲精品免费福利视频| 精品传媒国产在线观看| 久久久久久成人亚洲| 高清免费欧美大片在线观看| 欧美日韩中文国产天堂| 日本加勒比一本在线观看| 亚洲毛片一区二区在线|