KR Testing Solutions

Quality is effected by your work process

Sucks

I wrote this function this afternoon after being frustrated by the lack of decent checkpoints in QuickTest. I hope you find it insightful.

Public Function Sucks ( sString, sEvent )
    Dim sSuckMessage, bSuck, sNot
    sNot = “not”
    bSuck = False
    If sString = “checkpoints” Then
        bSuck = True
        sNot = “indeed”
    End If    sSuckMessage = “Expected Suckitude. “ & sString & _
        ” does “ & sNot & ” suck.”
    Sucks = reportStatus( bSuck, sEvent, sSuckMessage )
End Function

March 30, 2007 - Posted by kuldeep kumar | QTP 9.0 | | No Comments Yet

No comments yet.

Leave a comment