• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 容錯測試1-aop實現(3)

    發表于:2013-07-22來源:淘測試作者:秦淵點擊數: 標簽:容錯測試
    / aop:aspect / aop:config b) 腳本 : 配置切面參數 調用被 測試方法 c) 執行策略 : 是否要多線程 構造單個線程的參數 配置執行策略,運行 @Test public void test_01_t

            </aop:aspect>

         </aop:config>

      • b)  腳本: 配置切面參數&調用被測試方法
      • c)  執行策略: 是否要多線程&構造單個線程的參數&配置執行策略,運行

    @Test

        public void test_01_thread_run(){        

           ThreadFactory thFac=new ThreadFactory();

           //配置切面信息

            mockAspect.setMockResult(11);

           ThreadTest th=new ThreadTest();

           th.setOwnerBean(hello);

           th.setMethodName("hello");

           th.setMockAspect(mockAspect);

           th.setThreadMockFlag(true);

    //一個線程可以有n個校驗服務

           AssertService as=new AssertService();

           //增加線程中的驗證方法,直接可以定義

           as.setCheckMethod(this, "checkResult");

           th.addAssertService(as);

           //通過傳單個mock thread來傳參

           thFac.addThread(th);

           //同時啟動5個線程來測試

           thFac.startThreads(5);

      }

        public void checkResult(Integer result){

           System.out.println("傳入設置actual值得方法");

           result=result+1;

           assertThat("

    原文轉自:http://www.taobaotesting.com/blogs/2443

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>