QTP VBScript – Are you sure 1+1=2?
QTP VBScript contains different niceties. This article shows that 1 + 1 doesn’t equal 2 sometimes. Exactly, 1 + 1 doesn’t equal 2 sometimes. Well, I’ve prepared this QTP script: n1 = InputBox(“Enter first number”)n2 = InputBox(“Enter second number”)n1increased = n1 + 1 If n1increased = n2 Then MsgBox n1 & ” + 1 equals “ & n2Else MsgBox n1 & ” + 1 doesn’t equal “ & n2End If I will explain it step by step and show all entered data and generated result.Read first number from user’s inputI enter 1 as a first number: Read second number from user’s inputI…