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

關(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://www.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在线观看| 韩国午夜理伦三级好看| 中文字幕日韩欧美第一页| 日韩亚洲欧美国产另类| 日韩亚洲欧美另类精品| 国产精品午夜视频免费观看| 欧美成人极品一区二区三区| 国产大学生情侣在线视频| 国产亚洲中文字幕91| 成年人性生活一级视品| 欧美特黄在线免费观看| 日韩av一区二区免费在线观看| 日韩一二卡在线观看视频| 亚洲av在线av天堂| 最近日本免费高清完整版| 欧美亚洲另类麻豆综合在线| 亚洲精品国产第一区第二区| 免费观看国产性生活片| 亚洲第一狼人天堂在线| 国产91精品系列在线观看| 亚洲精品国产av成人| 亚洲欧美天堂一区二区| 一本之道久久成人综合| 日韩在线视频免费不卡一区| 一区二区三区福利视频在线观看 | 久久久久久极精品久久久|