How can you read the contents of PDF using silktest?

Answers were Sorted based on User's Feedback



How can you read the contents of PDF using silktest?..

Answer / 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

How can you read the contents of PDF using silktest?..

Answer / rockgora

I think, you should use additional application (Adobe
Reader 7.0 )and than from this application you can take
information about pdf file

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More Silk Test Interview Questions

In SilkTest we have a function Except Log which displays the path of the error occured in a Script.In QTP do we have any function like that?

0 Answers   CSS,


How to assign attribute values to test cases?

0 Answers  


In how many ways we can perform datadriven test in silk test, throgh flatfiles can we perform?

3 Answers  


Can silktest switch browsers automatically?

0 Answers  


who is the head of the BMC

1 Answers   BMC,






What are the problems you faced while identifying an object in silk?

0 Answers  


what is DON in SILK?

1 Answers  


I'm involved in automation using silk test of an swing application running in a browser. There is a window whose name is a dynamic. i.e based on the input(eg: some filename) the window name keeps on changing. I need to capture the window name for every run of silk test case for different input filenames. I'm aware of GetName() in SilkTest, but its not working for me. Can anybody suggest me any logic to achieve this using silktest?

3 Answers  


why silk test sees each objects as custom windows?

1 Answers   BMC,


How to do text verification point in silktest for a specific content.Suppose in the text editor, i have typed some "aaaa,bbbb,cccc,dddd" in different lines. now i want to capture only aaaa of first line from the text editor. How can i do it.Can any one help me.

3 Answers  


What is Silktest?

4 Answers  


What is the dom browser extension?

0 Answers  


Categories