{"id":12,"date":"2011-09-02T22:34:00","date_gmt":"2011-09-02T22:34:00","guid":{"rendered":"http:\/\/www.automationrepository.com\/?p=12"},"modified":"2011-10-09T00:24:25","modified_gmt":"2011-10-08T18:54:25","slug":"reserved-objects-in-qtp","status":"publish","type":"post","link":"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/","title":{"rendered":"Reserved Objects in QTP"},"content":{"rendered":"<div style=\"text-align: left;\" dir=\"ltr\">\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">To begin with, lets see what is an object (or test object) w.r.t. to QTP. A test object is an object used by QTP to represent an object in our AUT (Application Under Test). Each test object has a set of identification properties to identify it correctly in the application.<!--more--> All test objects also have a collection of associated properties and methods which we can use to retrieve\/set values or to perform various operations on the object.<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\"><a name=\"more\"><\/a><\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">The most common type of classification of QTP test objects is done on the basis of type of applications in which they are used. These objects can be added in the object repository and the user can perform some action on these objects. Example: If we are automating a web application, the test objects (such as WebButton, WebEdit, Link etc.) used in the application can be classified as Web Objects. Similar is the case with other objects such as Windows objects, Java objects, ActiveX objects etc.<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\"><strong>Reserved Objects: <\/strong>Reserved Objects are the objects that &#8211;<\/div>\n<ul style=\"background-color: white; font-family: Verdana,sans-serif; text-align: justify;\">\n<li style=\"font-family: Verdana,sans-serif;\"><span style=\"text-decoration: underline;\">are not stored in the object repository<\/span>. <em>[Example &#8211; DataTable object]<\/em><\/li>\n<li style=\"font-family: Verdana,sans-serif;\"><span style=\"text-decoration: underline;\">enable us to retrieve\/control QTP settings<\/span>. <em>[Example &#8211; QCUtil object that helps us access Quality Center Open Test Architecture (OTA) interface]<\/em><\/li>\n<li><span style=\"font-family: Verdana,sans-serif;\"><span style=\"text-decoration: underline;\">enable us to modify QTP behavior during a run session<\/span>. <em>[Example: Recovery Object which enables us to control the recovery scenario mechanism programmatically during the run session]<\/em><\/span><\/li>\n<\/ul>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\"><span style=\"text-decoration: underline;\">Reserved Objects can be further classified into 2 categories<\/span> &#8211;<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\"><span style=\"text-decoration: underline;\">a) <\/span><span style=\"text-decoration: underline;\">Global QuickTest Reserved Objects:<\/span> These are the reserved objects that are not environment specific and can be used with all the applications types (like Windows, Web, ActiveX applications etc).<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">Examples:<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">i) DataTable Object<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">ii) Description Object<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">iii) Reporter Object &#8230; and so on&#8230;<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\"><span style=\"text-decoration: underline;\">b) Environment-Specific Reserved Objects:<\/span> These are the reserved objects that are environment specific and can work only with their application types.<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">Examples:<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">i) SystemUtil and Desktop objects are the reserved objects that can work only with Windows OS. These objects cant be used with other OS such as Mac, Linux etc.<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\">ii) Another example is SAPGuiUtil object that can only be used with SAP applications.<\/div>\n<div style=\"font-family: Verdana,sans-serif; text-align: justify;\"><em>To learn more about the different Reserved Objects in QTP, refer QTP Object Model Reference.<\/em><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div style=\"font-family: Verdana,sans-serif; border: 1px solid #C8B560; padding: 3mm; background: #FFF8C6; text-align: center;\">\n<p>If you enjoyed this article, you can join our blog to get free email updates directly in your inbox.<\/p>\n<form style=\"text-align: center;\" action=\"http:\/\/feedburner.google.com\/fb\/a\/mailverify\" method=\"post\" onsubmit=\"window.open('http:\/\/feedburner.google.com\/fb\/a\/mailverify?uri=automationrepository\/feeds', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\" target=\"popupwindow\"><input style=\"width: 160px; height: 24px;\" onfocus=\"if (this.value == 'Enter Your Email Address') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = 'Enter Your Email Address';}\" type=\"text\" value=\"Enter Your Email Address\" \/> <input type=\"hidden\" name=\"uri\" value=\"automationrepository\/feeds\" \/> <input type=\"hidden\" name=\"loc\" value=\"en_US\" \/> <input type=\"submit\" value=\"Subscribe\" \/><\/p>\n<p style=\"text-align: justify;\">\n<\/form>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To begin with, lets see what is an object (or test object) w.r.t. to QTP. A test object is an object used by QTP to represent an object in our AUT (Application Under Test). Each test object has a set of identification properties to identify it correctly in the application.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[11],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-qtp-concepts","tag-reserved-objects"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Reserved Objects in QTP - XX<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anish Pillai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/\",\"name\":\"Reserved Objects in QTP - XX\",\"isPartOf\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#website\"},\"datePublished\":\"2011-09-02T22:34:00+00:00\",\"dateModified\":\"2011-10-08T18:54:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/9fb56e00b93c7e939604cdfb05d62078\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.automationrepository.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reserved Objects in QTP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#website\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/\",\"name\":\"XX\",\"description\":\"\\r\\nasas\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.automationrepository.com\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/9fb56e00b93c7e939604cdfb05d62078\",\"name\":\"Anish Pillai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Anish Pillai\"},\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/author\/anish-pillai\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reserved Objects in QTP - XX","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/","twitter_misc":{"Written by":"Anish Pillai","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/","url":"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/","name":"Reserved Objects in QTP - XX","isPartOf":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#website"},"datePublished":"2011-09-02T22:34:00+00:00","dateModified":"2011-10-08T18:54:25+00:00","author":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/9fb56e00b93c7e939604cdfb05d62078"},"breadcrumb":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/09\/reserved-objects-in-qtp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.automationrepository.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Reserved Objects in QTP"}]},{"@type":"WebSite","@id":"https:\/\/www.automationrepository.com\/wordpress\/#website","url":"https:\/\/www.automationrepository.com\/wordpress\/","name":"XX","description":"\r\nasas","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.automationrepository.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/9fb56e00b93c7e939604cdfb05d62078","name":"Anish Pillai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Anish Pillai"},"url":"https:\/\/www.automationrepository.com\/wordpress\/author\/anish-pillai\/"}]}},"_links":{"self":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":5,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/12\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}