Contributions
Exception EExternalException in module aqReporter.dll
Hi there, I have faced with very strange andannoyingerror (I've never seen such things before). Our testing process launches TestExecute utility every time we need to perform GUI testing with following command line: TestExecute.exe PDF_testing.pjs "argument" /run /project:PDF_testing /unit:TestManager /routine:Main /exit /SilentMode /ns And during the testing the command line given above is executed almostthousand timeand after it turns the half amount of tests (300-400) the 'Application Error' dialog (see attachment) rises for the rest launches. I would like to note that the TestExecute closes after the project run is over (see /exit switch) . My environment is: - Windows Server 2008 R2 64 bits - we use remote desktop connection to connect to the sever and do not close the session and do not put it (remote desktop connection) to the tray - TestExecute v8.50.618.11 Unfortunately we cannot provide the scripts to reproduce (NDA) but it does following steps: - start Adobe Acrobat Reader 9.4.* (32 bits) - load PDF file with U3D content in it - iterates through the file content - close the reader Also I would like to note that if a tester makes log off and log in again to this server this error's gone for the first 2-4hundred tests launches. We really need to have this issue solved and looking forward for your further contacts. With best regards, Aleksey21KViews0likes1CommentRe: Impossible to throw an exception from the 'OnLogError' handler.
Alex, thank you for your response but approaches your mentioned cannot solve the idea I described: because Runner.Stop(true); in my case stops execution at all including the main script too the approach with test item suppose to make them manually but in my case tests (number and order) should be provided via the list file e.i. dynamically but I did not find the possibility to make the test item in runtime Regards, Aleksey2.1KViews0likes0CommentsRe: Impossible to throw an exception from the 'OnLogError' handler.
Alex, well, the idea is fairly easy, there is a main script which manages other ones; it can launch them according the some input list file but need to have a possibility to interrupt the particular function execution in case of error (only one particular function!) and continue testing with the rest. Just for instance, Runner.Stop() function stops execution at all. For example we have main script like as follows: MainUnit.sj function Main() { try { while(/*read .lst file*/) { try { executeTestFunction("testUnit.test1"); } catch (ex) { /// do something } finally { /// clean up } } } catch (e) { Log.Message("catch - " + e.description); } } function EventControl1_OnLogError(Sender, LogParams) { Log.Message("Error desciption"); throw "TSException"; } Here is a generic test case: testUnit.sj test1() { try { ................. Log.Error("Error happened"); ................. } catch (e) { throw "TestCaseException"; } } I would like to note that such approach worked in the old version of TC at least in version 3. Thanks for your help. Regards, Aleksey.2.1KViews0likes0CommentsImpossible to throw an exception from the 'OnLogError' handler.
Hi, Can anybody explain me what happens? Why the code below does not work - TC just rises the error dialog "Exception thrown and not caught". By the way it worked at least with TC v3. And this approach is very helpful with error handling. function Main() { try { Log.Message("before call"); Log.Error("aaa"); Log.Message("after call"); } catch (e) { Log.Message("catch - " + e.description); } } function GeneralEvents_OnLogError(Sender, LogParams) { Log.Message("GeneralEvents_OnLogError"); throw ("Exception"); } Has anybody faced such kind of behaviour? Are there any workarounds? Thanks in advance for answers! Cheers, Aleksey.17KViews0likes10Comments