Showing posts with label TechNotebook. Show all posts
Showing posts with label TechNotebook. Show all posts

Tuesday, May 6, 2014

UFT 12 Installation Requirement

Minimum System Requirements
Computer Processor: 1.6 Ghz or higher
Operating System: Windows 7 Service Pack 1 (32-bit or 64-bit)
Memory: Minimum of 2 GB when no more than three add-ins are loaded simultaneously
Note:
An additional 512 MB of RAM are required when using a virtual machine.
Additional memory is required when loading more add-ins and when using the Save movie to results option to capture movies during run sessions.
Hard Disk Drive: 5400 RPM
Color Settings: High Color (16 bit)
Graphics Card: Graphics card with 64 MB video memory
Free Hard Disk Space: 2 GB of free disk space for application files and folders
You must also have an additional 1 GB of free disk space on the system disk (the disk on which the operating system is installed).
Browser: Microsoft Internet Explorer 7.0

Recommended System Requirements
Computer Processor: 3 Ghz or higher
Operating System: Windows 7 Service Pack 1 (32-bit or 64-bit)
Memory: 4 GB of RAM
Hard Disk Drive: 7200 RPM
Color Settings: High Color (16 bit)
Graphics Card: Graphics card with 64 MB video memory
Free Hard Disk Space: 20 GB of free disk space for application files and folders
You must also have an additional 1 GB of free disk space on the system disk (the disk on which the operating system is installed).
Browser: Microsoft Internet Explorer 9.0

Monday, May 5, 2014

What's New in UFT 12 (QTP 12)

Unified Functional Testing expands its integration with the complete set of HP’s testing solutions and presents new features and enhancements for greater usability, productivity, and technology support:
  • New Installation: UFT now has a smaller and faster installation package that can run without the need to deactivate the User Account Control.
  • Multilanguage installation: You can now install UFT in your operating system language without the need to install a separate language pack.
  • Connect to ALM using external authentication: You can now use external authentication, such as CAC (Common Access Card), to connect to ALM in place of the standard model of each user manually entering a user name and password.
  • Optional uploading of run results to ALM: Instead of manually adding run results to your ALM project, you can instruct UFT to automatically upload them by setting anALM site parameter.
UFT has also expanded the list of supported technologies:
  • New support for testing Safari on a Remote Mac (Technology Preview)

  • Support for the latest versions of each of the browsers: Internet Explorer, Firefox, and Chrome
  • New and enhanced support for additional desktop technologies: Delphi X2, Stingray 11, and Flex
  • Enhanced SAP support: Web Dynpro ABAP for Netweaver 7.31
  • New Testing Extensibility support for Visual Studio 2010 and 2012

Wednesday, April 23, 2014

QC OTA || Copy Paste Test Set Folder

Public Function CopyPasteTestSetFolder(sourceFolderPath, destFolderPath)
 
    strUser = ""
    strPassword = ""
    strDomain = ""
    strProject = ""

    strServer = “”
   
     Set objTDConnection = CreateObject("tdapiole80.TDCONNECTION")
     objTDConnection.InitConnection strServer, strDomain
     objTDConnection.ConnectProject strProject, strUser, strPassword
 
     Set objTreeManager = objTDConnection.TestSetTreeManager
     Set sourceFolder = objTreeManager.NodeByPath("Root\XXXX")
     Set destFolder = objTreeManager.NodeByPath("Root\YYYY")
 
     Dim iscp As ISupportCopyPaste
       
     Set iscp = sourceFolder

     clipboard = iscp.CopyToClipBoard(sourceFolder.NodeID, 0, sourceFolderPath)

     Set iscp = destFolder
     iscp.PasteFromClipBoard clipboard, destFolder.NodeID, 0, -1

     Set treeMng = Nothing
     Set sourceFolder = Nothing
     Set destFolder = Nothing
     Set iscp = Nothing
 
End Function

Friday, April 4, 2014

UFT 12 Download Link from HP site

Why Automation?

Automation Testing:
Automation Testing is not a replacement for manual testing it is just a continuation for a manual testing in order to provide speed and accuracy.
Test automation is the use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions.
Irritants in Manual Testing:
  • Time consuming.
  • Simultaneous actions are almost impossible.
  • Repeating the task in a same manner is not so easy manually.
Automation Benefits:
  • Fast: Runs test significantly faster than human tester's
  • Reliable: Tests perform precisely the same operations each time they are run, thereby eliminating human error
  • Repeatable: You can test how the software reacts under repeated execution of the same operations.
  • Programmable: You can program sophisticated tests that bring out hidden information from the application.
  • Comprehensive: You can build a suite of tests that covers every feature in your application.
  • Reusable: You can reuse tests on different versions of an application, even if the user interface changes.
  • Maintainability: The effort needed to update the test automation suits for each new release.

Where to Use: 
  • Tests that need to run on every build.
  • Regression, Performance and Functional tests( Data driven tests)
  • Repetitive tasks that are boring or tend to cause human error
  • Relatively stable areas of the application over volatile ones must be automated.

    Where Not: 
        ✗ Usability Testing 
        ✗ One-time testing
        ✗ Ad-hoc testing( Automation will be too time consuming)
    Automation Testing Outcome:
    • Providing more coverage of regression testing
    • Providing a detailed test log
    • Improving productivity of human testing

    insert screenshot taken in a word document.using Vb script

    Set win = CreateObject("word.application")
    win.Documents.Open "D:\screenshots.doc"    ' open existing file
    win.Selection.InlineShapes.AddPicture ("D:\dd.bmp")    ' adding sample pictures

    win.Selection.EndKey ' inserting end key to avoid overlapping
    win.Selection.InsertBreak
    win.Selection.InlineShapes.AddPicture ("D:\dd.bmp")

    win.Documents.Save
    win.Documents.Close
    win.Quit
    Set win = nothing

    Sunday, March 9, 2014

    WshShell | Code to Extract ZIP file

    Function ExtractZIP(zipFilePath)
    Dim arrFile, pathToZipFile, extractTo

    arrFile = Split(zipFilePath, ".")     ' Split file path with file extension
    Set fso = CreateObject("Scripting.FileSystemObject")    ' Create fso object to create/delete intermediate files...etc.,
    fso.CreateFolder(arrFile(0) & "\")     'creating a folder with same name and location
    pathToZipFile= arrFile(0) & ".zip"
    extractTo= arrFile(0) & "\"

    set objShell = CreateObject("Shell.Application")     'creating shell object
            ' code to extract the zip file and copy to same specified folder
    set filesInzip=objShell.NameSpace(pathToZipFile).items
    objShell.NameSpace(extractTo).CopyHere(filesInzip)
    Wait(2)
    'fso.DeleteFile pathToZipFile, True    ' deleting zip file after the extraction.
    Set fso = Nothing
    Set objShell = Nothing
    End Function

    WshShell | Code to Count the Number Of IE Browsers Opened

    Dim shie
    set sh  = CreateObject("shell.application").windows
    msgbox sh.Count
    set sh=nothing

    Friday, January 10, 2014

    WshShell | Get UserName and Other System details

    Below is the shell script to fetch username and other system details,


    Set objSysInfo = CreateObject("ADSystemInfo")
    strUser = objSysInfo.UserName
    Set objUser = GetObject("LDAP://" & strUser)
    strName = objUser.FullName

    SN = objUser.SN
    givenName = objUser.givenName
    sAMAccountName = objUser.sAMAccountName
    department = objUser.department
    company = objUser.company

    strTitle = "ComputerName" & objSysInfo.ComputerName
    strDepartment = "DomainDNSName" & objSysInfo.DomainDNSName
    strCompany = "DomainShortName" & objSysInfo.DomainShortName
    strPhone = "ForestDNSName" & objSysInfo.ForestDNSName

    strTitle1 = "IsNativeMode" & objSysInfo.IsNativeMode
    strDepartment1 = "PDCRoleOwner" & objSysInfo.PDCRoleOwner
    strCompany1 = "SchemaRoleOwner" & objSysInfo.SchemaRoleOwner
    strPhone1 = "SiteName" & objSysInfo.SiteName

    msgbox strName & strTitle & strDepartment & strCompany & strPhone  & strTitle1 & strDepartment1 & strCompany1 & strPhone1 & SN & givenName & sAMAccountName & department & company

    Thursday, January 9, 2014

    WshShell | Code to change System Date

    You might want to change the windows system Date/Time during a script runtime, below is the code for the same.

    Var_Date="01.09.2014"
    Dim WS
    Set WS= CreateObject("WScript.Shell")
    WS.run "cmd"
    window("object class:=ConsoleWindowClass").Type "date " & Var_Date
    window("object class:=ConsoleWindowClass").Type chr(13)
    window("object class:=ConsoleWindowClass").Type "exit"
    window("object class:=ConsoleWindowClass").Type chr(13)
    Set WS= nothing

    Sunday, January 5, 2014

    Excel Macro | Function to find a value in specified column

    One of those functions i used long back to find the row based on column name and value to be searched passed to the function as parameters,

    Code:

    Function FindRow(col_Name,ValueToFind)
    Set exobj=createobject("excel.application")
    exobj.visible = True
    exobj.workbooks.open("C:\Documents and Settings\osnpt150\Desktop\Products.xls")
    exobj.worksheets("Product_Testing_Grid").Activate
    usedrowscount=exobj.worksheets("Product_Testing_Grid").UsedRange.Rows.Count

    num=1
    For n=num to usedrowscount
    set  rng=exobj.worksheets("Product_Testing_Grid").Range(col_Name & n &":" & col_Name & usedrowscount)
    On Error Resume Next
    rng.Find(ValueToFind).Activate '', After:=ActiveCell, LookIn:=xlFormulas, LookAt :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= False, SearchFormat:=False).Activate
    If err.number=0 Then
    num=exobj.Activecell.Address
    msgbox "Found at row" & num
    num=mid(num,4,len(num)-3)
    n=num
    else
    Exit for
    End If
    On Error goto 0
    Next
    exobj.quit  
    set exobj=nothing
    End Function

    Tuesday, December 31, 2013

    Test Execuition Using SMS/Mail


    Once the task of ‘Automating’ is successfully completed and you are able to maintain the ‘Test Suite’ easily what would you like to do?
    I have been always looking for chances like this to take that extra leap. Here is what I did.

    I have successfully implemented the concept of executing tests by sending SMS from mobile or mail from Outlook for one of my clients!

    The code works in 3 parts
    Receiving SMS from mobile/mail from outlook and analyzing the message which is in predefined format
    Executing a QTP test set
    Replying the message results in predefined formats

    Following are the uses/features of Automation through SMS/Mail which I implemented
    1.       Start test
    2.       Pause Test & Resume Test
    3.       Stop Test
    4.       Get results on mobile and mail  (different levels of detail, report format, for mobile & mail)
    5.       Set configuration of Test / Test Set / Test Suite
    6.    Over-riding instructions can be given for tasks that are not yet picked up
    7.       Check Status of Test Execution
    8.       If multiple users/mobiles are used for the same test,
    1.       Their instructions will be carried out in a queue
    2.       They will be applied on defined batch/test execution configuration
    3.       Can check the queue of all the instructions by different users through sms/Mail
    4.       Hierarchy among users tasks by using priority
    9.       Confirmation of receipt of the instruction by an acknowledgement SMS (Sometimes, mobile messaging gets delayed or failed)

    10.   Connects to test management tool QC and updates results if specified

    Following are the steps:
    Pre Requisite: A dedicated system to run the ‘ROBO’ script that analyses SMS/MAIL and does the test execution/ response part.
    1.       Open an account with some sms provider (ex: ACL,BSNL)
    2.       A URL will be provided by the provider on firing which messages sent from mobile can be viewed.
    3.       Write a ROBOT application which continuously fires the URL and gets the messages at regular time intervals. Robot acts as a controller over test tool.
    4.    Create an outlook object and read all unread mails with predefined subject
    5.    Analyze the mail content
    6.       Analyze the messages and continue with test execution

    Below is the design for the same.




    I was not able to pick up the complete code from client (its client copy right material and no part of it should be reproduced), below is just a sample of how same can be done using VBSCRIPT.

    Code:

    //read sms from provider
    With CreateObject("InternetExplorer.Application") 
    .Navigate "http://www.smscountry.com/ApiGetInbox.asp?user=<username>&passwd=<pwd>&FromDate=03/02/2012&todate=03/02/2013"
    Do until .ReadyState = 4 
    loop 
    .visible = false 
    With .document 
    res_txt=.execcommand("SelectAll"  )
    res_txt=.execcommand("Copy")
    res_txt=.parentwindow.clipboardData.GetData("text")
    end with
    end with

    (contd..)