Posts: 146
Threads: 50
Joined: Dec 2008
Reputation:
1
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
Posts: 350
Threads: 2
Joined: Mar 2008
Reputation:
0
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.
Posts: 159
Threads: 0
Joined: Mar 2009
Reputation:
0
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.
Posts: 350
Threads: 2
Joined: Mar 2008
Reputation:
0
hi Tariksheth,
Does ur answer is related to Baba Fakruddin's Question ?
Posts: 159
Threads: 0
Joined: Mar 2009
Reputation:
0
yes,
I think logical errors are more to deal with the scenarios under which the scripts will be running.
Posts: 350
Threads: 2
Joined: Mar 2008
Reputation:
0
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?
Posts: 159
Threads: 0
Joined: Mar 2009
Reputation:
0
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.