UFT\QTP Learner
Tuesday, 12 December 2017
Vbscript:Find the sum of the digits till the sum reaches to a single digit
Find the sum of the digits till the sum reaches to a single digit
no=1234 'You can give any number you want
While no>0
modValue=no mod 10
result=result+modValue
no=int(no/10)
If no=0 and result >9 Then
no=result
result=0
End If
Wend
print result
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
pic
qt...
WaitProperty Method with Regular Expression
Description Waits until the specified object property achieves the specified value or exceeds the specified timeout ...
QTP AOM Script : Launch QTP, Create new test and Save it
QTP AOM Script : Launch QTP, Create new test and Save it =============================================== dim qtpapp set qtpapp=create...
QTP -Simple Program to navigate all the pages using Pagination link
Suppose there is thread in a forum and we wish to navigate all pages of the forum. Below code can be useful Thread url: http://www.indi...
No comments:
Post a Comment