cancel
Showing results for 
Search instead for 
Did you mean: 

Regular Expressions in TestComplete

SOLVED
manuelaneena
Occasional Contributor

Regular Expressions in TestComplete

Hi,

I wanted to search for a partcular text in a PDF document using python.how can I use regular expressions for the same?I will be passing the PDF document as well as the regular expression as  parameter.

1 ACCEPTED SOLUTION

Accepted Solutions
tristaanogre
Community Hero

Re: Regular Expressions in TestComplete

You will need to adapt the code presented here

https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete

 

to use within Python to pull the text out of a PDF file and process it.


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

View solution in original post

2 REPLIES 2
TanyaYatskovska
Community Manager

Re: Regular Expressions in TestComplete

Hi @manuelaneena,

 

Please refer to the following article for more information:

https://support.smartbear.com/testcomplete/docs/scripting/regular-expressions.html

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
tristaanogre
Community Hero

Re: Regular Expressions in TestComplete

You will need to adapt the code presented here

https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete

 

to use within Python to pull the text out of a PDF file and process it.


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

View solution in original post

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