Forum Discussion
I haven't gone quite to that level but I know others who have. It's not an unusual way of doing things. An automation framework can be as granular or as general as you would like. In a POS application I did testing on, I had generic functions for applying payments that I used all over the place. That's a bit more generalized as it's not a single button press but I know of some other framework structures that go a bit more granular.
Are you haven particular problems with this? Is there something not working for you?
Thank you very much for the updates.
No this kind of framework requires less coding in terms of creating the functions for every applications. Yes We have to be dependent on Name mapping as we are passing Name Mapping as parameters.
The biggest challenge is code completion do not appear . For e.g. if you look at the the screenshot functionscript1.png .
Also if we have new type of web Object then there is a challenge of writing the functions ie. writing the logic for e.g. how can we write the generic function of radio buttons.
Do you think is this a good framework ?
Thanks
NG
- tristaanogre7 years agoEsteemed Contributor
If it meets your business needs, does what you need it to do, and is easily maintainable and expandable... then yes, it's a good framework.
As mentioned, I don't go quite this granular. I prefer to write my framework on a functional level (applying a payment, entering contact details, saving a file, etc) rather than on granular controls.
As for code completion, this is to be expected. The function you displayed doesn't know what "ButtonObj" is... there's no context for it to know how to complete that code.
As for radio buttons, what I would do is map the parent object for the radio buttons (panel, etc) and each of the buttons underneath it. Your parameters for that function would be the parent object and the button name. But this is just one way, I'm sure there are others. Again... if it works for you, then it works.
Related Content
- 11 years agojose_pita
- 4 years agoAutomation1id
Recent Discussions
- 16 hours agojstaehlin
- 2 days agoAivanitskiy