Featured

0 SAP TAO - Solution Manager



SAP Solution Manager is a software tool, content and gateway to create, operate, manage and monitor business management solutions.The SAP Solution Manager is a platform which provides integrated support of the life-cycle of a business solution, from the Business Blueprint via configuration to production operation.

The SAP Solution Manager is a platform which provides integrated support of the life-cycle of a business solution, from the Business Blueprint via configuration to production operation.  

Read more

0 Writing PDF with QTP



QTP  Version 10
Adobe Acrobat Reader  : 10.1.1
ATTP plugin from adobe....

All works fine...


Activex component can’t create object ‘acroexch.app’ or Working with PDF

For working with PDF you require to have PDF writer installed in the system.
To use “AcroExch.PDDoc” object, you have to install Adobe Acrobat (Adobe Acrobat is writer which is chargeable or has trial for 30 days) on your computer.

Check whether “AcroExch.PDDoc” object is available on your computer. For that, open a registry and check the path: HKEY_CLASSES_ROOT\AcroExch.PDDoc

If “AcroExch.PDDoc” key exists, then you can use Acrobat OLE  Automation in your QTP scripts,else you need to install the software

Solution Code : 

'' This code opens the pdf file, make sure it used IE
 
Public Function zOpenPDF(spdfPath)

       ''Close all IE before opening
       SystemUtil.CloseProcessByName("iexplore.exe")
       wait(3)
        SystemUtil.Run  spdfPath
        wait(3)
    End Function

        Public Function zSaveAsPDF(pdf_path_SaveAs)
                   Set WshShell = CreateObject("WScript.Shell")
                Window("Windows Internet Explorer").Activate
                WshShell.SendKeys "+^{S}"
                wait(5)
                WshShell.SendKeys pdf_path_SaveAs
                wait(2)
                WshShell.SendKeys "~"
                wait(2)
        End Function

      
        Public Function zClosePDF()
           wait(3)
                Window("Windows Internet Explorer").Activate
                sIETitle=Window("Windows Internet Explorer").GetROProperty("Title")
                Window("Windows Internet Explorer").Close
        End Function

Read more

0 Upload file in QC thru QTP


''// This function will upload any file into QC as attachment.

filepath="C:\Auto\Results\results_xyz_02.xls"

Public function z_attachtoQC(filepath)
                 Set nowTest = QCUtil.CurrentTestSet
                 Set attachmentPath = nowTest.Attachments
                 Set nowAttachment = attachmentPath.AddItem(Null)

                 'Replace with the path to your file:

                 nowAttachment.FileName = filepath
                 nowAttachment.Type = 1
                 nowAttachment.Post()

End Function

Read more

0 Cannot get RemoteAgent's ClassID for test type

' Cannot get RemoteAgent's ClassID for test type ' shown in QC when trying to run a QTP test.



Solutions :

Install QTP addin for QC from the QC help->Addin page. Take care to install the appropriate addin based on correct version of QTP.

In QTP, Tools -> Options -> Run
Check the checkbox for “Allow other HP prodoucts to run the test and components"

Restart the machine before trying.
Read more

0 OTA - Reading Name and Address from QC thru vbscript


This function retrives the user and address from QC thru OTA.

Public Function GetProjectUsersList()
    Dim td
    Dim custUsers As CustomizationUsers
    Dim USR As CustomizationUser
    Dim UList As List

        qcLoginID = ""
        qcPassword = ""
        qcUrl = ""
        qcDomain = ""
        qcProject = ""

            Set tdc = CreateObject("TDApiOle80.TDConnection")
            tdc.InitConnectionEx qcUrl
            tdc.Login qcLoginID, qcPassword
            tdc.Connect qcDomain, qcProject

           Set custUsers = tdc.Customization.users
            Set UList = custUsers.users          

            For Each USR In UList
                 MsgBox USR.Name + " : " + USR.Address
            Next USR
End Function
Read more

2 Connecting to QC Site Admin Api - SAClient.SaApi



Using VBScript:

Dim objSAClient, resp
Set objSAClient = CreateObject("SAClient.SaApi.9")
'you have to know which is the correct reference to the SiteAdmin

'then login as admin:
objSAClient.login "http://ipaddress/sabin", qcuser, qcpassword



NOTE:
If you want to know what is the reference for the SAAPI you have to go to the regedit, "HKEY_CLASSES_ROOT\SaClient.SAapi\CurrVer" and see what is the current version and use it.

For QC 9.2 : 
 The URL in the format http://[:]/sabin.

For QC 10.0 : 

 The URL in the format http://[:]/qcbin.
 
Read more

0 Test Automation Framework - Benefits


Test Automation Framework defines the organization’s way of doing things – a Single Standard. Following this standard, the project team will achieve -

• A test library design that will help in effective team-communication, library-versioning and Artifacts creation.

• Standard scripting that will result in team consistency during test library design and prevent individuals from following their own coding standards, thus avoiding duplicate coding.

• Sparing the Test engineers from knowing the critical aspects of the code. Implemented libraries and codes can be executed by just invoking the needed libraries.

• Test Automation scripts are separated from input data store and only the input data gets manipulated whereas no modification is needed for the test scripts.

• By developing the libraries, they can be reused again and again, saving time for the entire organization/project team.

• Extensibility and maintenance becomes easy, as the re-usable library can be created as an enhanced feature. By giving right role-based access, the standard process of Test Automation scripting can be maintained.
Read more

0 QTP Add-ins


QTP supports following :

ERP/ CRM, Java/ J2EE, VB.NET, Multimedia, XML Web Objects, ActiveX controls, SAP, Oracle, Siebel, PeopleSoft, Web Services, Terminal Emulator,IE, NN, AOL.
QTP will support Ajax testing but you have to install Ajax Addins to use the Ajax application.

Web extensibility now includes an out-of-the-box limited support for standard AJAX controls; a global Window object to be used within JavaScript to access the IE namespace; Extensibility code can now be debugged by the Script debugger or Visual Studio debugger; and there are minor improvements to reporting capabilities.
Read more
  • Recent Posts

     
    © QTPCode | Design by Blog template in collaboration with Concert Tickets, and Menopause symptoms
    Powered by Blogger