Friday, May 24, 2013

Test Estimation template

This template can be used to estimate the tasks given the resources and other parameters


Download Test estimation template

Risk Register

This template can be used to track and maintain the list of risks in an organization.


Download Risk Register

Wednesday, May 22, 2013

Testing checklist




Check list for the testing team

Product:

Version:

Date:

Checklist Item
Yes/No/NA
1.    Is the release notes prepared and shared?

2.    Are the requirements that are implemented documented?

3.    Has knowledge transfer happened on the critical aspects?

4.    Is the unit testing done by the developers?

5.    Is the testing strategy defined and accepted?

6.    Are the dependencies documented and shared to the testing team?

7.    Are the assumptions documented and shared to the testing team, if any?

8.    Is the environment setup clear to the testing team?

a.    different software required

b.    hardware required

c.    network connections required

d.    installation procedure

e.    credentials required etc.

9.    Are all the known issues documented and shared to the testing team?

10.  Are the milestones identified and accepted?

11.  Is a POC (Point of contact) identified to address the clarifications from the development team and testing team?

12.  Is the testing life cycle defined and accepted?

13.  Are all the defect ids that were fixed are documented and shared?

14.  Are any SLAs identified and accepted?



Reviewed By:

Date:

Monday, May 20, 2013

Wait for a page to load

Public Function func_waitForPage(objectref)

   Dim strResult
   Dim intloopcounter
   strResult=False
   Set wshell = CreateObject("WScript.Shell")
   wShell.Sendkeys("^{HOME}")
   For intloopcounter = 1 to 3
    If objectref.Exist Then
    sub_VerifyErrorNumber "wait for page"
   strResult = True
   Exit For
    End If
   Next
 
   If strResult <> True Then
    func_waitForPage = False
 Else
  func_waitForPage = True
   End If
End Function


Close all browsers using QTP

Public Function func_closeBrowsers()

 Dim oBrowser 'to store browser object description

 'Create description object
 Set strOpenBrowser = Description.Create
 strOpenBrowser("creationtime").Value = 0
 
 'close all open browsers
 While Browser(strOpenBrowser).Exist(0)
    Browser(strOpenBrowser).Close
 Wend
 
 'verify  whether all the opened browsers are closed or not.
 If Browser(strOpenBrowser).Exist(0) = False Then
  func_closeBrowsers = True
  sub_reportSuccess "Close Browser", "All browsers are closed successfully"
 Else
  func_closeBrowsers = False
 End If
End Function 'End of 'closeBrowsers' function.

Tuesday, May 14, 2013

Convert date format

Public Function func_convertDateFormat(ByVal DateString, ByVal SourceFormat, ByVal ReqFormat)

 Dim strMonthVal ' to store the month value 
 Dim strDayVal ' to store the day value
 Dim strYearVal ' to store the year value
 Dim aTempVal ' to store the splitting date values in an array
 
 If Not IsEmpty(DateString) Then
 
    ' select the specified  source format 
    Select Case SourceFormat
 
     Case "MM-DD-YYYY"
      ' split and store the month,day and year values in variables 
      aTempVal  = Split(DateString, "-")
      'verify input date string whether it is in source format or not.
      If Ubound(aTempVal) = 2  Then
       strMonthVal = aTempVal (0)
       strDayVal = aTempVal (1)
       strYearVal = aTempVal (2)
      Else
     func_convertDateFormat = "ErrMsg: Input parameter DateString is not in specified source format"
    End If
 
     Case "YYYY-MM-DD"
      ' split and store the month,day and year values in variables 
      aTempVal  = Split(DateString, "-")
      'verify input date string whether it is in source format or not.
      If Ubound(aTempVal) = 2  Then
       strYearVal = aTempVal (0)
       strMonthVal = aTempVal (1)
       strDayVal = aTempVal (2)
    Else
     func_convertDateFormat = "ErrMsg: Input parameter DateString is not in specified source format"
    End If
 
   Case "MM/DD/YYYY"
    ' split and store the month,day and year values in variables 
    aTempVal  = Split(DateString, "/")
    'verify input date string whether it is in source format or not.
    If Ubound(aTempVal) = 2  Then
     strMonthVal = aTempVal (0)
     strDayVal = aTempVal (1)
     strYearVal = aTempVal (2)
    Else
     func_convertDateFormat = "ErrMsg: Input parameter DateString is not in specified source format"
    End If
 
   Case "YYYY/MM/DD"
    ' split and store the month,day and year values in variables 
    aTempVal  = Split(DateString, "/")
    'verify input date string whether it is in source format or not.
    If Ubound(aTempVal) = 2  Then
     strYearVal = aTempVal (0)
     strMonthVal = aTempVal (1)
     strDayVal = aTempVal (2)
    Else
     func_convertDateFormat = "ErrMsg: Input parameter DateString is not in specified source format"
    End If
 
   Case "DD/MM/YYYY"
    ' split and store the month,day and year values in variables 
    aTempVal  = Split(DateString, "/")
    'verify input date string whether it is in source format or not.
    If Ubound(aTempVal) = 2  Then
     strDayVal = aTempVal (0)
     strMonthVal = aTempVal (1)
     strYearVal = aTempVal (2)
    Else
     func_convertDateFormat = "ErrMsg: Input parameter DateString is not in specified source format"
    End If
 
   Case Else
    'returns false when sorce format is not in the specified list.
    func_convertDateFormat = "ErrMsg: Input parameter" & " " & SourceFormat & " " & "is not valid"
    Exit Function
    
  End Select
 
  ' select the specified  source format 
  Select Case ReqFormat
   ' Combine the month,day and year values in variables to get required format
   Case "MM-DD-YYYY"
    func_convertDateFormat = strMonthVal & "-" & strDayVal & "-" & strYearVal
   Case "YYYY-MM-DD"
    func_convertDateFormat = strYearVal  & "-" & strMonthVal & "-" & strDayVal
   Case "MM/DD/YYYY"
    func_convertDateFormat = strMonthVal & "/" & strDayVal & "/" & strYearVal
   Case "DD/MM/YYYY"
    func_convertDateFormat = strDayVal & "/" & strMonthVal & "/" & strYearVal
   Case "YYYY/MM/DD"
    func_convertDateFormat = strYearVal  & "/" & strMonthVal & "/" & strDayVal
   Case Else
    func_convertDateFormat = "ErrMsg: Input parameter" & " " & ReqFormat & " " & "is not valid"
    Exit Function
  End Select
 Else
  func_convertDateFormat = "ErrMsg: Input parameter" & " " & DateString & " " & "is not valid"
 End If

End Function


Register user func

Public function func_WebEditset(object,strValue)	
	strTempfieldname=Replace(Replace(object.ToString,"WebEdit",""),"_"," ")
	If  object.Exist  Then	 
		If  object.GetROProperty("disabled")=0 Then
			object.Set strValue
			func_WebEditset = True
		Else
			func_WebEditset= " field is disabled"
		End If
	Else
		func_WebEditset=" field is not Found"
	End If
End Function

RegisterUserFunc "WebEdit","Set","func_WebEditset",True


AI in Software Testing: How Artificial Intelligence Is Transforming QA

For years, software testing has lived under pressure: more features, faster releases, fewer bugs, smaller teams. Traditional QA has done her...