Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



How to do text verification point in silktest for a specific content.Suppose in the text editor, i..

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

How to do text verification point in silktest for a specific content.Suppose in the text editor, i..

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

How to do text verification point in silktest for a specific content.Suppose in the text editor, i..

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

Post New Answer

More Silk Test Interview Questions

How to define new testplan attributes?

0 Answers  


What is the segue testing methodology?

0 Answers  


hai iam not working.iam try to job.on practice i have dout .HOW TO TEST THE CALCULATOR BY USING DATA DRIVEN.PLS REPLY WITH CODE.I HAVE NO IDEA ON DATA DRIVEN.

2 Answers   Aricent, Cincom,


why silk test sees each objects as custom windows?

1 Answers   BMC,


How to define an object verification in a test case?

0 Answers  


Is there any way of passing values at runtime? Like scanf does in C.

0 Answers  


What is 4test?

0 Answers  


How dom browser extension identify a web application ui object?

0 Answers  


How to assign attribute values to test cases?

0 Answers  


How to open an existing silktest project?

0 Answers  


Is there any way to retrieve content of the image i.e If image contains text... how to retrieve in silk test In QTP there is GetVisibleText is there any function similar to this in silktest...

3 Answers   AppLabs, HCL,


Hi All, An newbiee to silk test tool. I wanted to write a function which checks the browser type installed in the local machine & then based on the browser type test case should run. I tried little bit writing the function : Void Func_ValidateBrowserType() Window myWin myWin = Browser.GetRealBrowser () print (myWin) Any help please.. Thanks, V

0 Answers  


Categories