"Fail to run" when calling from another Action - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: "Fail to run" when calling from another Action (/Thread-Fail-to-run-when-calling-from-another-Action) |
"Fail to run" when calling from another Action - crissbbbm - 08-27-2013 Hi everybody I am having troubles when executing the following code from UFT. The code is included in a separate action which has a local data table. When I run the action separately, everything is working perfectly and the test passes. If I call the action from another action, I get the following error: "Fail to run the test due to un unknown error". Here is the code I am using: Code: ExistsInSection DataTable("BasicSettings", dtLocalSheet), "BasicSettings" Code: Function ExistsInSection(ByVal columnName, ByVal section) Code: Public Sub CheckCondition(ByVal p_blnCheckCondition, ByVal p_strReportStepName, ByVal p_strReportDetails) Note: The code includes some functions for String format and Exists function returns a Boolean if the obj exists. These functions are working. The objects in OR are having an added property called "section". Please let me know if you have an idea about what I am doing wrong... Thank you! |