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)
Spring Boot : Exception Handler 14
WaitProperty Method with Regular Expression
Description Waits until the specified object property achieves the specified value or exceeds the specified timeout ...
Vbscript: Reading CSV file using ADODB
Option Explicit Dim adoCSVConnection, adoCSVRecordSet, strPathToTextfile Dim strCSVFile, k ' Specify path to CSV file. strPathToTextF...
UFT: Drag and Drop (When Object Supports it)
Below Code works if the WebElement has supports Drag and Drop Function. If Object does not support Drag and Drop , Mercury Device Replay ...
No comments:
Post a Comment