Hi All, Here is a brief update about API Manager integration test improvement. Before adding test cases code coverage was about 2% (default test set). Once we added nuwanW implemented you tube sample it was about 12%. After that we added 4 existing JMeter scripts it was about 24% (and i need to fix some remaining issues in other 2 scripts). So at this moment code coverage is about 24%. As we do not have usage related tests i removed usage packages from instrumentation file. We might need to add tests to cover API Manager and BAM integration to cover usage related code. Here are some of the areas we might need to focus on (based on emma report).
- Tests to cover Key management web service API as we use thrift by default. - Also found that exception classes are playing major role as we do not test exceptions in our tests. For this we can skip exception classes of add tests to cover exceptions. - We need to implement throttling scenario tests to cover throttling code base. - For the moment we can safely ignore uri-template scenarios as we have comprehensive unit tests for that. But we might need tests for url mapping. - We need to cover JWT generation and signing scenario (include claims retrieving) as we have significant amount of code written for that. - We need to add tests to cover tenant scenarios. - We might need to add token parser test cases. - Also we should add some test cases to cover all operations exposed by host object classes(we can achieve this through more scenarios). - Some tests to cover workflow scenarios(user creation, application creation and subscription). - Application level throttling tests and we found that significant amount of throttling code will not execute. - Add some test to cover comments, rating related operations. Please let know your ideas and feedback. We have planned to add test cases to cover missed areas. Thanks, sanjeewa. -- *Sanjeewa Malalgoda* Senior Software Engineer WSO2 Inc. Mobile : +94713068779 <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
