SilkTest Question:

Download Job Interview Questions and Answers PDF

How to get the integer value from a string ?

SilkTest Interview Question
SilkTest Interview Question

Answer:

How to get the integer value from a string
print([int]"100")
this returns some different value some 49
need the value 100 to be print


Answer1:
There is one inbuild Silk's function which converts String value into Integer. Try with that
INTEGER iTemp = Val ("100")


Answer2:
Use Val function.....
print (Val("100"))...The int wrapper returns the ASCII value for the string "100"...

Download SilkTest Interview Questions And Answers PDF

Previous QuestionNext Question
How silktest recognize objects in UI? What it intenally calls to find out that the particular UI element is of which class etc?An application developed using Dotnet. and 1000 cases recorded for this application.
All was working fine until...one fine day...
Some one changed the namespaces which are used by this application. The scripts have started failing because it is as good as having a new window or a panel in the application.
Obviously, Silk does not recongnise this window.
Now is there any way to tackle this problem other than recording the windows all over again.?