Sponsored Ad

Thursday, November 11, 2010

Software Testing Through QTP: Check Leap Year

While doing software testing through QTP, you need to know some basic programming of VBScript. This demo program will help you to check the given year is leap year or not.

Follow the following steps to check a given year is leap year.

Leap Year Program 1:
Dim vYear
vYear= 2014
If (vYear/ 4 = vYear\ 4) Then
MsgBox vYear & " is Leap Year"
Else
MsgBox vYear & " is Not a Leap Year"
End If

Software Testing Through QTP: Check Leap Year

Leap Year Program 2: 

Dim vYear
vYear= 2012
If (vYear/ 4 = vYear\ 4) Then
MsgBox vYear & " is Leap Year"
Else
MsgBox vYear & " is Not a Leap Year"
End If

Software Testing Through QTP: Check Leap Year

0 comments:

Post a Comment

Sponsored Ad

Development Updates

Tech Updates