Forum Discussion

santi's avatar
santi
Contributor
5 years ago
Solved

Object oriented Scripting (python) for UI automation

We use function based approach extensively using Test Complete, but for a new application (web based), we wanted to use 'Object oriented Approach'.

I heard this approach not receomended as per Test Complete Documentation.

I would like to hear from people who are using python+object oriented design for their scripting of automation.

 

Thanks,

Santi

4 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    I'm not sure where you heard using OOP is not recommended... heck, I recommend it!  Better coding practices, etc.  HOWEVER... as mentioned, keep in mind that TestComplete is not ENTIRELY the same as application IDE's so not everything is going to be as convenient.  

     

    I love using OOP and would encourage you to do so.

    • santi's avatar
      santi
      Contributor

      I use python in Test Complete. I use functions.

      I dont think much of OOPs concept we can use in TestComplete, while scripting for Test Cases (procedural).

      I personally skeptical of using class structure, unless it's useful.

      Thanks for sharing your thoughts.