B
Bharani Ranganath
Guest
I tried the same code uncommenting the catch block, now it does not quit, and continues with rest of the test cases . Here is the code : METHOD PUBLIC VOID ValidateUser(): IF NOT ValidateUserCredentials(OUTPUT cError) THEN DO: Assert:RaiseError(cError). QUIT. END. CATCH err AS appError : DO piLoop = 1 TO err:NumMessages: Assert:RaiseError(err:GetMessage(piLoop)). LEAVE. END. GarbageCollectorHelper
eleteObject(oContextDatasetFactory). QUIT . END CATCH. END METHOD. and the output after build is : RaiseError OpenEdge.Core.Assert at line 918 (OpenEdge/Core/Assert.r) ValidateUser Base.Company.Companies.CompanyUnitTest at line 453 RunTests OpenEdge.ABLUnit.Runner.ABLRunner at line 150 (OpenEdge/ABLUnit/Runner/ABLRunner.r) ABLUnitCore.p at line 72 (ABLUnitCore.r) RaiseError OpenEdge.Core.Assert at line 918 (OpenEdge/Core/Assert.r) InValidCompany Base.Company.Companies.CompanyUnitTest at line 549 Not sure where i am going wrong !!!
Continue reading...
Continue reading...