SlideShare a Scribd company logo
1 of 5
Download to read offline
H2Kinfosys                                                                        USA : 770 777 1269
Email: training@h2kinfosys.com                                                    UK: (020) 3371 7615

                         QTP Interview Questions
                                    Quick Test Professional
   Now HP Unified Functional Testing Software which comes with QTP and Service Test Software.


HP Unified Functional Testing software
Complete automated testing toolset with best-in-class test management.

A single solution for testing GUIs and APIs

HP Unified Functional Testing software is industry-leading software that accelerates automated software
testing for both GUI and API applications, and also validates integrated test scenarios for hybrid
composite applications. Simplified test design and maintenance result in reduced risk and improved
quality for all your modern applications. HP Unified Functional Testing includes HP QuickTest
Professional (QTP) and HP Service Test software.


Key benefits:

    Simplify test creation and maintenance with intuitive design approaches
    Detect bugs earlier in the lifecycle by validating APIs
    Implement automated testing for every major software application and environment
    Use with HP Business Process Testing for a component-based testing framework
    Integrate with HP Quality Center and ALM for comprehensive test management


1. How do you identify objects in a Java GUI
2. How do you call a function?
3. Difference between Java API call and Function Call
4. Have you designed any frame work, what framework i have used before
5. How will you do descriptive programming in Java
6 How will you identify the Objects properties in Java/Windows?
7. What frame work will you consider when you are testing a Java Application
8. How do you return a function in VB scripts?
9. Which is the fastest way to debug in QTP?
10. Check points in QTP
11. What is a data table in QTP?
12. Difference between QTP earlier ver. and QTP 10.0 What are new features in QTP 10.0 and QTP 11

What are documents used for automating the test scripts?.
Most of the time we use existing manual test cases and execute them 1st , understand then automate
them.
We can also develop test plan before we start automating.
Come with pseudo code for function libraries.
Develop frame work
Test data.


     US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615
H2Kinfosys                                                                              USA : 770 777 1269
Email: training@h2kinfosys.com                                                          UK: (020) 3371 7615
Make sure the QTP is able to handle the application.
Planning is the one before automate.

How to add vb script function libraries to QTP at run time.

code will add the library files:

Dim qtApp 'As QuickTest.Application ' Declare the Application object variable

Dim qtLibraries 'As QuickTest.TestLibraries ' Declare a test's libraries collection variable

Dim lngPosition

' Open QuickTest

Set qtApp CreateObject( QuickTest.Application ) ' Create the Application object

qtApp.Launch ' Launch QuickTest

qtApp.Visible True ' Set QuickTest to be visible

' Open a test and get its libraries collection

qtApp.Open C:Test1 False False ' Open a test

Set qtLibraries qtApp.Test.Settings.Resources.Libraries ' Get the libraries collection object

' Add Utilities.vbs if it's not in the collection

If qtLibraries.Find( C:sai1.vbs ) -1 Then ' If the library cannot be found in the collection

qtLibraries.Add C:sai1.vbs 1 ' Add the library to the collection

End If

How to send email from QTP

How to call this below function : SendEmail( "Rao.h2kinfosys@gmail.com", "test@gmail.com", "Auto
Email: TestResults.", " This email is generated Automation scripts ", ResultsFilename)
================================

Public Sub SendEmail(sFromMailId, sToList, sCCList, sSubject,sMsg, aAttachments)

Const gcsSendUsingMethod = "http://schemas.microsoft.com/cdo/configuration/sendusing"
'Const gcsSendUsingMethod = 1
Const gciSendUsingPort = 2
'Const gciSendUsingPort = 2
 'Use basic (clear-text) authentication.
Const cdoBasic = 1


      US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615
H2Kinfosys                                                                        USA : 770 777 1269
Email: training@h2kinfosys.com                                                    UK: (020) 3371 7615
' Use NTLM authentication
Const cdoNTLM = 2 'NTLM
Const gcsSMTPServer = "http://schemas.microsoft.com/cdo/configuration/smtpserver"
Const gcsSMTPServerIp = "11.444.63.454"


 Set oCDOMsg = CreateObject("CDO.Message")
 Set oCDOConf = CreateObject("CDO.Configuration")

 Set oConfField = oCDOConf.Fields
 With oConfField
  .Item(gcsSendUsingMethod) = gciSendUsingPort
  .Item(gcsSMTPServer) = gcsSMTPServerIp
  .Update
 End With

 With oCDOMsg
  Set .Configuration = oCDOConf
  .From = sFromMailId
  .To = sToList
  .CC = sCCList
  .Subject = sSubject
  .HTMLBody = sMsg
 End With

 If Not(IsArray(aAttachments)) Then
    aAttachments = Split(aAttachments, ";")
 End If

 If (aAttachments(0) <> "") Then
    For i=0 To Ubound(aAttachments)
      Call oCDOMsg.AddAttachment(aAttachments(i))
    Next
 End If

 oCDOMsg.Send

 Set oCDOMsg = Nothing
 Set oCDOConf = Nothing
 Set oConfField = Nothing

'On Error Goto 0

End Sub 'SendEmail


H2KInfosys <h2kinfosys@gmail.com>




     US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615
H2Kinfosys                                                                        USA : 770 777 1269
Email: training@h2kinfosys.com                                                    UK: (020) 3371 7615


Q) Do you know how to post the Webservices WSDL file using QTP Script ?

Ans: YEs. I can create object using WinHttp.WinHttpReques
     Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
     WinHttpReq.Open "POST", strURL, True

Q2 ) Steps to access the data from database ?

ANS: 1. creating connection object
        Set adoConn = CreateObject("ADODB.Connection")
    2. open the database connection
    3. create resultset object by execute method and pass the SQL query
    4. In while loop until EOF ( end of File) get each column value and process as needed as per the
       requirement.
       at the end close the record set and database connection.

<Environment>
 <Variable>
   <Name>ApplicationPath</Name>
   <Value>C:ProgramFilesApplicationLocation</Value>
 </Variable>

  <Variable>
    <Name>TestData</Name>
    <Value>C:MyApplicationTestdata.xls</Value>
  </Variable>


  <Variable>
    <Name>FlightAppFunctionLibs</Name>
    <Value>C:MyFlightAppFunctions</Value>
  </Variable>

</Environment>

Driver Script ( It is QTP Script File )

Environment.LoadFromFile("[Quality CenterResources] ResourcesEnvironmentVarriables.xml")
ExecuteFile( Environment.Value("FlightAppFunctionLibs") & "Flight_Common.vbs")

C:MyFlightAppFunctionsFlight_Common.vbs

Call CreateFlightTicket()




     US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615
H2Kinfosys                                                                           USA : 770 777 1269
    Email: training@h2kinfosys.com                                                       UK: (020) 3371 7615

    Related products
          HP Application Lifecycle Management

    A unified software platform for accelerating the delivery of secure, reliable, modern applications
           HP Business Process Testing softwareComponent-based testing framework that accelerates
    test creation and reduces test maintenance
          HP Quality Center Software

    Achieve consistent IT quality management processes and software quality assurance
          HP Service Test softwareStart testing services with a few clicks of a mouse
          HP Service VirtualizationGive developers and testers access to limited or unavailable
    services

    Related services
          HP Application Lifecycle Management Consulting

    Expert testing, design, implementation and education services and innovative delivery models for HP
    ALM
          HP Testing as a ServiceCheaper than in-house testing, higher service-level compliance and
    fewer defects

                                   <<<<<< =================== >>>>>>




                   H2K Infosys is         business based in Atlanta, Georgia – United States
                                Providing Online IT training services world wide.

                                             www.H2KINFOSYS.com

                                USA - +1-(770)-777-1269, UK - (020) 3371 7615
                              Training@H2KInfosys.com / H2KInfosys@Gmail.com



            100% Job Oriented Instructor Led Face2Face True Live online Software Training +
                         Cloud Test Lab with Software Tools & Live Project work +
                               Mock Interviews + Resume Prep & Review +
                                        Job Placement assistance
                                                    =
                      Best IT training Center Trusted by many students worldwide.


         US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615

More Related Content

More from H2Kinfosys

Test plan cyclos
Test plan cyclosTest plan cyclos
Test plan cyclosH2Kinfosys
 
HealthCare Project Test Case writing guidelines
HealthCare Project Test Case writing guidelinesHealthCare Project Test Case writing guidelines
HealthCare Project Test Case writing guidelinesH2Kinfosys
 
Letters test cases
Letters test casesLetters test cases
Letters test casesH2Kinfosys
 
Health Care Project Testing Process
Health Care Project Testing ProcessHealth Care Project Testing Process
Health Care Project Testing ProcessH2Kinfosys
 
Test Plan Template
Test Plan TemplateTest Plan Template
Test Plan TemplateH2Kinfosys
 
Test Plan Template
Test Plan TemplateTest Plan Template
Test Plan TemplateH2Kinfosys
 
ETL Testing Interview Questions and Answers
ETL Testing Interview Questions and AnswersETL Testing Interview Questions and Answers
ETL Testing Interview Questions and AnswersH2Kinfosys
 
CRM Project - H2Kinfosys
CRM Project - H2KinfosysCRM Project - H2Kinfosys
CRM Project - H2KinfosysH2Kinfosys
 
Online Banking Business Requirement Document
Online Banking Business Requirement DocumentOnline Banking Business Requirement Document
Online Banking Business Requirement DocumentH2Kinfosys
 
Online Shopping Cart Business Requirement Dcoument
Online Shopping Cart Business Requirement DcoumentOnline Shopping Cart Business Requirement Dcoument
Online Shopping Cart Business Requirement DcoumentH2Kinfosys
 
QA Interview Questions With Answers
QA Interview Questions With AnswersQA Interview Questions With Answers
QA Interview Questions With AnswersH2Kinfosys
 
Basic Interview Questions
Basic Interview QuestionsBasic Interview Questions
Basic Interview QuestionsH2Kinfosys
 
SDLC software testing
SDLC software testingSDLC software testing
SDLC software testingH2Kinfosys
 

More from H2Kinfosys (13)

Test plan cyclos
Test plan cyclosTest plan cyclos
Test plan cyclos
 
HealthCare Project Test Case writing guidelines
HealthCare Project Test Case writing guidelinesHealthCare Project Test Case writing guidelines
HealthCare Project Test Case writing guidelines
 
Letters test cases
Letters test casesLetters test cases
Letters test cases
 
Health Care Project Testing Process
Health Care Project Testing ProcessHealth Care Project Testing Process
Health Care Project Testing Process
 
Test Plan Template
Test Plan TemplateTest Plan Template
Test Plan Template
 
Test Plan Template
Test Plan TemplateTest Plan Template
Test Plan Template
 
ETL Testing Interview Questions and Answers
ETL Testing Interview Questions and AnswersETL Testing Interview Questions and Answers
ETL Testing Interview Questions and Answers
 
CRM Project - H2Kinfosys
CRM Project - H2KinfosysCRM Project - H2Kinfosys
CRM Project - H2Kinfosys
 
Online Banking Business Requirement Document
Online Banking Business Requirement DocumentOnline Banking Business Requirement Document
Online Banking Business Requirement Document
 
Online Shopping Cart Business Requirement Dcoument
Online Shopping Cart Business Requirement DcoumentOnline Shopping Cart Business Requirement Dcoument
Online Shopping Cart Business Requirement Dcoument
 
QA Interview Questions With Answers
QA Interview Questions With AnswersQA Interview Questions With Answers
QA Interview Questions With Answers
 
Basic Interview Questions
Basic Interview QuestionsBasic Interview Questions
Basic Interview Questions
 
SDLC software testing
SDLC software testingSDLC software testing
SDLC software testing
 

Recently uploaded

Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfinfogdgmi
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1DianaGray10
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfDaniel Santiago Silva Capera
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationIES VE
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintMahmoud Rabie
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-pyJamie (Taka) Wang
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxGDSC PJATK
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024SkyPlanner
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarPrecisely
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxMatsuo Lab
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URLRuncy Oommen
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDELiveplex
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?IES VE
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAshyamraj55
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 

Recently uploaded (20)

Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdf
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
 
20150722 - AGV
20150722 - AGV20150722 - AGV
20150722 - AGV
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership Blueprint
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-py
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptx
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity Webinar
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
 
201610817 - edge part1
201610817 - edge part1201610817 - edge part1
201610817 - edge part1
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URL
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 

QTP Interview Questions 2012

  • 1. H2Kinfosys USA : 770 777 1269 Email: training@h2kinfosys.com UK: (020) 3371 7615 QTP Interview Questions Quick Test Professional Now HP Unified Functional Testing Software which comes with QTP and Service Test Software. HP Unified Functional Testing software Complete automated testing toolset with best-in-class test management. A single solution for testing GUIs and APIs HP Unified Functional Testing software is industry-leading software that accelerates automated software testing for both GUI and API applications, and also validates integrated test scenarios for hybrid composite applications. Simplified test design and maintenance result in reduced risk and improved quality for all your modern applications. HP Unified Functional Testing includes HP QuickTest Professional (QTP) and HP Service Test software. Key benefits:  Simplify test creation and maintenance with intuitive design approaches  Detect bugs earlier in the lifecycle by validating APIs  Implement automated testing for every major software application and environment  Use with HP Business Process Testing for a component-based testing framework  Integrate with HP Quality Center and ALM for comprehensive test management 1. How do you identify objects in a Java GUI 2. How do you call a function? 3. Difference between Java API call and Function Call 4. Have you designed any frame work, what framework i have used before 5. How will you do descriptive programming in Java 6 How will you identify the Objects properties in Java/Windows? 7. What frame work will you consider when you are testing a Java Application 8. How do you return a function in VB scripts? 9. Which is the fastest way to debug in QTP? 10. Check points in QTP 11. What is a data table in QTP? 12. Difference between QTP earlier ver. and QTP 10.0 What are new features in QTP 10.0 and QTP 11 What are documents used for automating the test scripts?. Most of the time we use existing manual test cases and execute them 1st , understand then automate them. We can also develop test plan before we start automating. Come with pseudo code for function libraries. Develop frame work Test data. US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615
  • 2. H2Kinfosys USA : 770 777 1269 Email: training@h2kinfosys.com UK: (020) 3371 7615 Make sure the QTP is able to handle the application. Planning is the one before automate. How to add vb script function libraries to QTP at run time. code will add the library files: Dim qtApp 'As QuickTest.Application ' Declare the Application object variable Dim qtLibraries 'As QuickTest.TestLibraries ' Declare a test's libraries collection variable Dim lngPosition ' Open QuickTest Set qtApp CreateObject( QuickTest.Application ) ' Create the Application object qtApp.Launch ' Launch QuickTest qtApp.Visible True ' Set QuickTest to be visible ' Open a test and get its libraries collection qtApp.Open C:Test1 False False ' Open a test Set qtLibraries qtApp.Test.Settings.Resources.Libraries ' Get the libraries collection object ' Add Utilities.vbs if it's not in the collection If qtLibraries.Find( C:sai1.vbs ) -1 Then ' If the library cannot be found in the collection qtLibraries.Add C:sai1.vbs 1 ' Add the library to the collection End If How to send email from QTP How to call this below function : SendEmail( "Rao.h2kinfosys@gmail.com", "test@gmail.com", "Auto Email: TestResults.", " This email is generated Automation scripts ", ResultsFilename) ================================ Public Sub SendEmail(sFromMailId, sToList, sCCList, sSubject,sMsg, aAttachments) Const gcsSendUsingMethod = "http://schemas.microsoft.com/cdo/configuration/sendusing" 'Const gcsSendUsingMethod = 1 Const gciSendUsingPort = 2 'Const gciSendUsingPort = 2 'Use basic (clear-text) authentication. Const cdoBasic = 1 US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615
  • 3. H2Kinfosys USA : 770 777 1269 Email: training@h2kinfosys.com UK: (020) 3371 7615 ' Use NTLM authentication Const cdoNTLM = 2 'NTLM Const gcsSMTPServer = "http://schemas.microsoft.com/cdo/configuration/smtpserver" Const gcsSMTPServerIp = "11.444.63.454" Set oCDOMsg = CreateObject("CDO.Message") Set oCDOConf = CreateObject("CDO.Configuration") Set oConfField = oCDOConf.Fields With oConfField .Item(gcsSendUsingMethod) = gciSendUsingPort .Item(gcsSMTPServer) = gcsSMTPServerIp .Update End With With oCDOMsg Set .Configuration = oCDOConf .From = sFromMailId .To = sToList .CC = sCCList .Subject = sSubject .HTMLBody = sMsg End With If Not(IsArray(aAttachments)) Then aAttachments = Split(aAttachments, ";") End If If (aAttachments(0) <> "") Then For i=0 To Ubound(aAttachments) Call oCDOMsg.AddAttachment(aAttachments(i)) Next End If oCDOMsg.Send Set oCDOMsg = Nothing Set oCDOConf = Nothing Set oConfField = Nothing 'On Error Goto 0 End Sub 'SendEmail H2KInfosys <h2kinfosys@gmail.com> US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615
  • 4. H2Kinfosys USA : 770 777 1269 Email: training@h2kinfosys.com UK: (020) 3371 7615 Q) Do you know how to post the Webservices WSDL file using QTP Script ? Ans: YEs. I can create object using WinHttp.WinHttpReques Set WinHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1") WinHttpReq.Open "POST", strURL, True Q2 ) Steps to access the data from database ? ANS: 1. creating connection object Set adoConn = CreateObject("ADODB.Connection") 2. open the database connection 3. create resultset object by execute method and pass the SQL query 4. In while loop until EOF ( end of File) get each column value and process as needed as per the requirement. at the end close the record set and database connection. <Environment> <Variable> <Name>ApplicationPath</Name> <Value>C:ProgramFilesApplicationLocation</Value> </Variable> <Variable> <Name>TestData</Name> <Value>C:MyApplicationTestdata.xls</Value> </Variable> <Variable> <Name>FlightAppFunctionLibs</Name> <Value>C:MyFlightAppFunctions</Value> </Variable> </Environment> Driver Script ( It is QTP Script File ) Environment.LoadFromFile("[Quality CenterResources] ResourcesEnvironmentVarriables.xml") ExecuteFile( Environment.Value("FlightAppFunctionLibs") & "Flight_Common.vbs") C:MyFlightAppFunctionsFlight_Common.vbs Call CreateFlightTicket() US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615
  • 5. H2Kinfosys USA : 770 777 1269 Email: training@h2kinfosys.com UK: (020) 3371 7615 Related products  HP Application Lifecycle Management A unified software platform for accelerating the delivery of secure, reliable, modern applications  HP Business Process Testing softwareComponent-based testing framework that accelerates test creation and reduces test maintenance  HP Quality Center Software Achieve consistent IT quality management processes and software quality assurance  HP Service Test softwareStart testing services with a few clicks of a mouse  HP Service VirtualizationGive developers and testers access to limited or unavailable services Related services  HP Application Lifecycle Management Consulting Expert testing, design, implementation and education services and innovative delivery models for HP ALM  HP Testing as a ServiceCheaper than in-house testing, higher service-level compliance and fewer defects <<<<<< =================== >>>>>> H2K Infosys is business based in Atlanta, Georgia – United States Providing Online IT training services world wide. www.H2KINFOSYS.com USA - +1-(770)-777-1269, UK - (020) 3371 7615 Training@H2KInfosys.com / H2KInfosys@Gmail.com 100% Job Oriented Instructor Led Face2Face True Live online Software Training + Cloud Test Lab with Software Tools & Live Project work + Mock Interviews + Resume Prep & Review + Job Placement assistance = Best IT training Center Trusted by many students worldwide. US: (770) 777 1269 | www.H2Kinfosys.com | Email: training@h2kinfosys.com | UK: (020) 3371 7615