Logical Errors - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Logical Errors (/Thread-Logical-Errors) |
Logical Errors - bfakruddin - 03-23-2009 Hello friends, In our Test Script we have 1000 lines of code, How can you identify logical errors in Script? thanks & regards, Baba Fakruddin.D RE: Logical Errors - sreekanth chilam - 03-23-2009 Hi, Generally in Vbscript there are Two Types of Errors: 1)Syntax Errors 2)Runtime Errors Syntax Errors: For knowing how many errors are there & what are they ? Use Tools --> "Check Syntax" option (Ctrl+F7) , then all the syntax errors will be displayed in Information pane. Runtime Errors : You can use "ERR" object for retrieving the Error information. RE: Logical Errors - Tarik Sheth - 03-24-2009 One can run the script giving negative data as a test data and see the behaviour of the script, For logical error one has to have an approach of negative testing of the script. RE: Logical Errors - sreekanth chilam - 03-24-2009 hi Tariksheth, Does ur answer is related to Baba Fakruddin's Question ? RE: Logical Errors - Tarik Sheth - 03-24-2009 yes, I think logical errors are more to deal with the scenarios under which the scripts will be running. RE: Logical Errors - sreekanth chilam - 03-24-2009 hi Tariksheth, I acknowledge your explaination. But what is the solution for below Question: In our Test Script we have 1000 lines of code, How can you identify logical errors in Script? RE: Logical Errors - Tarik Sheth - 03-24-2009 Well, one can use code analysis tool Like 1. FX cop(for C# code) 2. ParaSoft 3. Project analyzer( for VB code) These kind of tools will be helpful in deisgn and test long functions and descriptive actions more useful. |