SilkTest Question:

Download Job Interview Questions and Answers PDF

How can I access empty string from excel sheet?

SilkTest Interview Question
SilkTest Interview Question

Answer:

customize code like this
Solution1:
==========
[-] if sText!=NULL
[ ] Page.tfldName.SetText(sText) // do the operation
[-] else
[ ] Page.tfldName.CleartText()

Permanent solution: Add the below winclass to your code(if it is web application simply paste it, else make HtmlTextField as TextField), Now Text field will not raise exception on null value.

[-] winclass HtmlTextField: HtmlTextField
[ ]
[-] void SetText(String sText optional)
[+] if sText==NULL
[ ] this.ClearText()
[+] else
[ ] derived::SetText(sText)

Download SilkTest Interview Questions And Answers PDF

Previous QuestionNext Question
Sessionids problemNeed help regd. silk test runing thr .bat file on cmd prompt?