
Cucumber Python PDF field checker
- or -
Post a project like this2779
$$
- Posted:
- Proposals: 4
- Remote
- #2055164
- Awarded
Description
Experience Level: Intermediate
I have a command line python script that uses pdfminer to check the field boxes in pdf, and to see if they match the expected values. I need someone to modify it, or create a new one that is compatible with cucumber. So I can have cucumber feature steps of to check the pdf field values, with python step definitions.
See attached python script with readme, can modify it or create a new one.
It would be similar to this, but use python, and my specific steps listed below
I need the a cucumber step_definition that has the following steps.
When I open a PDF
(Should allow me to enter a pdf file path to open)
Then the PDF field "2. REQUISITION/PROCURMENT REQUEST NO." contains "EQ5PT1AA-18-0023"
(Should validate if that field contains that value from the pdf, if it doesnt should give a value not present, of if enters a field that doesnt exist should throw field does not exist error)
Then the PDF fields contains values
| 2. REQUISITION/PROCURMENT REQUEST | EQ5PT1AA-18-0023 |
| 4. DATE PREPARED | 6/25/2018 |
|19. TOTAL AMOUNT INCLUDING CONTINUATION | $36.00 |
( Same as before but now the input is a table to verify if multiple values are present at once)
Then the PDF File contains value "The best line item ever"
(This is to search the entire pdf for this value, which is in the last page , it doesnt show in the xml, maybe you can figure it on)
See attached python script with readme, can modify it or create a new one.
It would be similar to this, but use python, and my specific steps listed below
I need the a cucumber step_definition that has the following steps.
When I open a PDF
(Should allow me to enter a pdf file path to open)
Then the PDF field "2. REQUISITION/PROCURMENT REQUEST NO." contains "EQ5PT1AA-18-0023"
(Should validate if that field contains that value from the pdf, if it doesnt should give a value not present, of if enters a field that doesnt exist should throw field does not exist error)
Then the PDF fields contains values
| 2. REQUISITION/PROCURMENT REQUEST | EQ5PT1AA-18-0023 |
| 4. DATE PREPARED | 6/25/2018 |
|19. TOTAL AMOUNT INCLUDING CONTINUATION | $36.00 |
( Same as before but now the input is a table to verify if multiple values are present at once)
Then the PDF File contains value "The best line item ever"
(This is to search the entire pdf for this value, which is in the last page , it doesnt show in the xml, maybe you can figure it on)
Sayed C.
100% (2)Projects Completed
2
Freelancers worked with
2
Projects awarded
25%
Last project
31 Jul 2021
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies