An Event-based framework for object-oriented analysis, computation of metrics and identification of test scenarios