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


Please Help Members By Posting Answers For Below Questions

What is the segue testing methodology?

627


What is a silktest testplan?

630


How to assign attribute values to test cases?

639


Can silktest run on mac?

650


What is silktest agent?

597






How to record a test case?

608


How to select a group of test cases in a testplan to run?

560


What is the syntax of ui object identifier used by dom extension?

606


How to create a new silktest project?

597


What is defaultbasestate?

606


How to create a test frame?

640


What are the default testplan attributes?

634


How to define new testplan attributes?

529


How to run a test case from a test script file?

606


How to specify a browser extension to a web application?

614