Thanks:  0
Likes:  0
Dislikes:  0

1. ## Complexity Measurement

Does anyone have any suggestions for measuring the complexity of a test in QTP.

How does this sound?

I was trying to keep things simple and base this measurement on 2 concepts

1.lines of code
2.Calls to functions

I thought about adding a weight to both and placing upper and lower boundries

for example

Lines of Code
100 lines - 5
200 lines - 10
300 lines - 20

Calls to functions (Each function adds 1 to the weight)
5 Calls - 5
10 Calls - 10
15 Calls - 15

By summing these weights we can come to conclusions such as

&gt;20 Low
20&gt;30 Medium
30+ High

Any thoughts?

Thanks

A_F

2. ## Re: Complexity Measurement

I'm going to step back one or two steps and ask - why do you need to know the complexity of the test? I'm sure it is because a manager somewhere is asking you for some sort of metric. Could you give us some background? Maybe there is an alternative to "test complexity".

In any case, I'm going to suggest that lines of code is not a good measure. Test Complexity, I would think, should be independent of the tool used to construct it. If QTP does it in 50 lines, but TestPartner does it in 15, does that mean the test is less complex in TestPartner? That doesn't intuitively ring true. Same thing for function calls. The contruction of the tool may require more function calls in one tool than in another, for the same test.

3. ## Re: Complexity Measurement

Thanks Darrel,

Ok, redefine time! test complexity - script complexity in QTP. Im talking only about complexity of a script in QTP, as this is the tool we use.

We need to cover as many tests as possible in a project. Now, when we come to test the application, to what degree should we test it. how deep do our tests need to go. Test/script complexity relates to the level of test depth required and the time it takes to achieve it.

If we only have a limited time then maybe we need to make our tests scripts less complex in order that we have time to contstruct them. Its a way to get the script developers to focus their scripting in a certain way. I now this means that maybe we are not testing the app to its full extent but this is not always necessary.

I agree that Test complexity as you have understood it is not defined by the tool. However, In this case the definition here of Test Complexity is defined by the test tool QTP as we know that more or less, to test a web edit object requires a set amount of code, to test a table requires a certain amount of code.

Yes, I have been asked by a manager. I do agree with what you are saying but sometimes its very difficult to put across these kinds of concepts.

I have to think about the simplest solution without incorparating the education of a board of directors into the equation.

Thanks

A_F

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.