cancel
Showing results for 
Search instead for 
Did you mean: 

Object oriented Scripting (python) for UI automation

SOLVED
Highlighted
Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: Object oriented Scripting (python) for UI automation

Hey,

 

Yes You can write your code in OOP, but TestComplete intelissense will not work for you.

 

You can always read my "idea topic":

 

Link: https://community.smartbear.com/t5/TestComplete-Feature-Requests/TestComplete-intellisense-why-it-wo...

 

this is for JS but the idea id the same.

View solution in original post

4 REPLIES 4
Highlighted
Community Leader

Re: Object oriented Scripting (python) for UI automation

Hey,

 

Yes You can write your code in OOP, but TestComplete intelissense will not work for you.

 

You can always read my "idea topic":

 

Link: https://community.smartbear.com/t5/TestComplete-Feature-Requests/TestComplete-intellisense-why-it-wo...

 

this is for JS but the idea id the same.

View solution in original post

Highlighted
Contributor

Re: Object oriented Scripting (python) for UI automation

Nicely written, Thanks.

Community Hero

Re: Object oriented Scripting (python) for UI automation

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.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Highlighted
Contributor

Re: Object oriented Scripting (python) for UI automation

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.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors