jeudi 12 janvier 2017

Design pattern for Value comparision in test framework

I am currently writing a Automation Framework for an Mobile app. In each screen of the app there are numeric values which I have to keep track. At the end of this flow I have to perform some actions on these numeric values. Also this flow can be performed multiple times and at the end of the testcase I have to compare these values.

Currently I am taking a singleton class and in this class i have put inner class which represents one flow. during each flow i initialize the inner class and add values from the screen. The singleton class has the array of inner classes for each iteration of flow. then at the end of the flow I am comparing all the value by iterating through innerclass.

Can any suggest me if my pattern is proper or is there any other pattern i can use? Thanks in Advance

Aucun commentaire:

Enregistrer un commentaire