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.
Answers were Sorted based on User's Feedback
Answer / jinsha
store the string in a text variable as
string a="aaaa,bbbb,cccc,dddd"
print (getfield("/",a,1,4)
this captures only aaaa
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / nikhil
store the text in a string variable.
say STRING sContent = "aaaa,bbbb,cccc,dddd"
Now use getfield(sContent,',',1) which captures only aaaa.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / samar
use this sample code ..
pass the string as parameter in Check_PDF method.
Parameter whichever string you want to
retrive/display/verification.
Check_Pdf("aaaa")
[-] Check_PDF(LIST OF STRING lspdfcheckpoint)
[ ] WaitForControl(Gold_Orders.ViewOrderForm)
[ ] // main window - Gold_orders
[ ] // OrderForm - 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")
[ ] Print("String Verification : "+Items)
[-] else
[ ] LogError ("FAIL:" +Items + "Item not found on the
OrderForm")
[ ] //Close SRF
[ ] OrderForm.TypeKeys("<Alt-F4>")
Is This Answer Correct ? | 2 Yes | 1 No |
In for test there are three pass modes for function arguments. They are rarely used since pass mode always default to the most used one. Pls name them and specify which one is a default?
What are the possible failure scenarios and different types of errors you find in silkTest?
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.
Can u Tell me why we use Advanced tool like Silk Test other than QTP, Or WIN RUNNER And others what is the advantage of these compared o others
procedure or steps to do silk test? clearly
How to define values for a testplan attribute?
Can we customise the result file?
How to record a test case?
How dom browser extension identify a web application ui object?
who is the head of the BMC
How do you create a user defined class in silk?
What is the perpose of user-defined base state method?