How can you read the contents of PDF using silktest?
Answer Posted / guest
Use this method to parse - notepad and Pdf.
[-] Check_PDF(LIST OF STRING lspdfcheckpoint)
[ ] WaitForControl(Gold_Orders.ViewOrderForm)
[ ] // main window - Gold_orders
[ ] // ViewOrderForm - Pdf form
[ ] Gold_Orders.ViewOrderForm.Click()
[ ]
[-] if (OrderForm.Exists())
[ ] WaitForControl(OrderForm)
[ ]
[ ] STRING Items
[ ]
[ ] Clipboard.SetText({""})
[ ] OrderForm.TypeKeys("<Ctrl-a><Ctrl-Insert>")
[ ] LIST OF STRING OrderForm_Order = Clipboard.GetText()
[ ] STRING Line
[ ] BOOLEAN Found = FALSE
[-] for each Line in OrderForm_Order
[-] for each Items in lspdfcheckpoint
[ ]
[-] if MatchStr("*" +Items + "*", Line)
[ ] Found = TRUE
[-] if (Found)
[ ] Print ("PASS:" +Items + "Item found on the OrderForm")
[-] else
[ ] LogError ("FAIL:" +Items + "Item not found on the
OrderForm")
[ ] // 31. Close SRF
[ ] OrderForm.TypeKeys("<Alt-F4>")
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How to download latest silk test trial version?
How to define values for a testplan attribute?
Is there any way of passing values at runtime? Like scanf does in C.
can any one please tell me the full form of .g.t in silktest datadriven method
How load testing can be done with silk international?
Where is a testplan stored?
how to pass TDS intery in tally?
How to run a test case from a testplan file?
What is a test frame?
What is silktest project?
What are the types of text lines in a testplan file?
What is stored in a test frame?
What is silktest agent?
What is the standard flow of execution of a test case?
How to include a test case into a testplan?