Wednesday, July 2, 2014

Test Automation Framework


In this article we are discussing about Test Automation Framework which can be used for testing LTE software components. LTE network contains following entities or nodes.



        In order to perform Layer3 Component Testing then OAM, RRM, L2, MME need to be simulated. Similarly to Test RRM module, OAM, L3 need to be simulated. It is always good to emulate PHY and better to perform end 2 end testing.

       Now we are going to discuss perl based framework implementation.
We can define a xml structure as follows which arranges the test script in tree order. Sub nodes testscripts will executed if parent node's testcase is passed otherwise next sibiling nodes testcase will be executed.

       Initially we thought better to define xml format testscript but later we realized it is better to keep it in perl script format and we can use perl scripts feature for maximum extent. This is possible since inside perl script we can load another perl script and run it. So perl script which reads configuration xml and then it calls function of the test script. so master script just orders the execution of testcases.

      Following is the sample of the testscript. Testscript basically contains test scenarios mainly message exchange. These messges can be defined in the xml format. Sample is given. And we can provide mechanism to include ANS based xml message format which is nothing but XER encoding. We can use open source tool whicn can convert xml to binary.