不谋万世者,不足谋一时;不谋全局者,不足谋一域。君子敏于事而慎于言 新浪微薄:土司阿哈

RFT出现异常截图,再杀IE进程

上一篇 / 下一篇  2008-08-28 23:15:32 / 个人分类:Rational

1208328177
  • 自动化测试:
  • 测试文档:

RFT出现异常截图,再杀IE进程51Testing软件测试网(Yw|-k3g

    public boolean onUnhandledException(Throwable exception) {

;~YM]Moj0

    System.out.println("onUnhandledException");51Testing软件测试网G-l/e:]U

    logInfo("AWT button is not enabled.", getRootTestObject().getScreenSnapshot()); 51Testing软件测试网M+r MV9T/y3HJti

    try51Testing软件测试网w_O A7p.K%E

    {51Testing软件测试网 \7K5yr)KVQ W

        Runtime.getRuntime().exec("taskkill /F /IM iexplore.exe");

?UH2f5h|2x0

    }

S'vDyFrW0

    catch (Exception ex){

^0MJ$L5G1@6m/}/oq0

        }51Testing软件测试网R6o&|7y5^ dU[D T2Uh

    sleep(10);51Testing软件测试网/e6QFmu'SG~f

    return true;

:oq$n@5p&Q(^|}.}0

    }51Testing软件测试网t/M_|5pV } ] H


TAG: Rational

 

评分:0

我来说两句

Open Toolbar