cancel
Showing results for 
Search instead for 
Did you mean: 

Regular Expressions in TestComplete

SOLVED
Highlighted
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
Highlighted
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
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 Gorbunova
SmartBear Community Manager

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
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
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Compare images using the Region Checkpoint

See replies!

Converting UTC TimeDate in an Excel file

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors