<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Software Testing Interview Questions &#187; QTP 8.2 Tips &amp; Tricks</title>
	<atom:link href="http://www.bugtest.info/category/qtp-82-tips-tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bugtest.info</link>
	<description>Software Testing Interview Question &#124; Test Director Interview question &#124; Load Runner interview questions &#124; QTP interview questions &#124; Silk Test Interview questions &#124; Win Runner  Interview questions &#124; Software Quality Assurance Interview Questions &#124; Automated Testing Interview Questions &#124; Manual Testing Interview Questions</description>
	<pubDate>Wed, 06 Aug 2008 18:53:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Quick Test Professional Questions &#038; Answers Part 2</title>
		<link>http://www.bugtest.info/quick-test-professional-questions-answers-part-2/</link>
		<comments>http://www.bugtest.info/quick-test-professional-questions-answers-part-2/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 18:03:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<category><![CDATA[Quick Test Professional Question &amp; Answers]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/quick-test-professional-questions-answers-part-2.html</guid>
		<description><![CDATA[11.Keyword view in QTP is also termed as
Icon based view
12.What is the use of data table in QTP?
parameterizing the test
13.What is the use of working with actions?
To design a modular and efficient tests
14.What is the file extension of the code file and object repository file in QTP?
The extension for code file is .vbs and the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>11.Keyword view in QTP is also termed as</strong></p>
<p>Icon based view</p>
<p><strong>12.What is the use of data table in QTP?</strong></p>
<p>parameterizing the test</p>
<p><strong>13.What is the use of working with actions?</strong></p>
<p>To design a modular and efficient tests</p>
<p><strong>14.What is the file extension of the code file and object repository file in QTP?</strong></p>
<p>The extension for code file is .vbs and the extension for object repository is .tsr</p>
<p><strong>15.What are the properties we can use for identifying a browser and page when using descriptive programming?</strong></p>
<p>The name property is used to identify the browser and the title property is used to identify the page</p>
<p><strong>16.What are the different scripting languages we can use when working with QTP?</strong></p>
<p>VB script</p>
<p><strong>17.Give the example where we can use a COM interface in our QTP project?</strong></p>
<p>COM interface appears in the scenario of front end and back end.</p>
<p><strong>18.Explain the keyword createobject with example</strong></p>
<p>createobject is used to create and return a reference to an automation object.</p>
<p>For example:<br />
Dim ExcelSheetSet<br />
ExcelSheet=createobject(“Excel.Sheet”)</p>
<p><strong>19.How to open excel sheet using QTP script?</strong></p>
<p>You can open excel in QTP by using the following command<br />
System.Util.Run”Path of the file”</p>
<p><strong>20.Is it necessary to learn VB script to work with QTP?</strong></p>
<p>Its not mandate that one should mastered in VB script to work with QTP. It is mostly user friendly and for good results we need to have basic VB or concepts which will suffice</p>
<p><strong>21.If WinRunner and QTP both are functional testing tools from the same company. Why a separate tool QTP came in to picture?</strong></p>
<p>QTP has some additional functionality which is not present in WinRunner. For example,you can test(Functionality and Regression testing) an application developed in .Net technology with QTP,which is not possible to test in WinRunner</p>
<p><strong>22.Explain in brief about the QTP automation object model</strong></p>
<p>The test object model is a large set of object types or classes that QTP uses to represent the objects in our application. Each test object has a list of properties that can uniquely identify objects of that class</p>
<p><strong>23.What is a Run-Time data table?</strong></p>
<p>The test results tree also includes the table-shaped icon that displays the run-time data table-a table that shows the values used to run a test containing data table parameters or the data table output values retrieved from a application under test</p>
<p><strong>24.What are all the components of QTP test script?</strong></p>
<p>QTP test script is a combination of VB script statements and statements that use QuickTest test objects ,methods and properties<br />
<strong><br />
25. What is test object?</strong></p>
<p>Its an object that QTP uses to represent an object in our application. Each test object has one or more methods and properties that we can use to perform operations and retrieve values for that object. Each object also has a number of identification properties that can describe the object.</p>
<p><strong>26.What are all the rules and guidelines want to be followed while working in expert view?</strong></p>
<p>Case-sensitivity</p>
<p>VB script is not case sensitive and does not differentiate between upper case and lower case spelling of words.</p>
<p>Text strings</p>
<p>When we enter value as a string, that time we must add quotation marks before and after the string</p>
<p>Variables</p>
<p>We can use variables to store strings,integers,arrays and objects. Using variables helps to make our script more readable and flexible.</p>
<p>Parentheses</p>
<p>To achieve the desired result and to avoid the errors,it is important that we use parentheses() correctly in our statements.</p>
<p>Comments</p>
<p>We can add comments to our statements using apostrophe(&#8217;),either at a beginning of the separate line or at the end of a statement</p>
<p>Spaces</p>
<p>We can add extra blank spaces to our script to improve clarity. These spaces are ignored by the VB script</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/quick-test-professional-questions-answers-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to connect to a database?</title>
		<link>http://www.bugtest.info/how-to-connect-to-a-database/</link>
		<comments>http://www.bugtest.info/how-to-connect-to-a-database/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:27:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/how-to-connect-to-a-database.html</guid>
		<description><![CDATA[code:
Const adOpenStatic = 3
Const adLockOptimistic = 3
Const adUseClient = 3
Set objConnection = CreateObject(&#8221;ADODB.Connection&#8221;)
Set objRecordset = CreateObject(&#8221;ADODB.Recordset&#8221;)
objConnection.Open &#8220;DRIVER={Microsoft ODBC for Oracle};UID=;PWD=
&#8221;
objRecordset.CursorLocation = adUseClient
objRecordset.CursorType = adopenstatic
objRecordset.LockType = adlockoptimistic
ObjRecordset.Source=&#8221;select field1,field2 from testTable&#8221;
ObjRecordset.ActiveConnection=ObjConnection
ObjRecordset.Open &#8216;This will execute your Query
If ObjRecordset.recordcount&#62;0 then
Field1 = ObjRecordset(&#8221;Field1&#8243;).Value
Field2 = ObjRecordset(&#8221;Field2&#8243;).Value
End if
]]></description>
			<content:encoded><![CDATA[<p>code:</p>
<p>Const adOpenStatic = 3<br />
Const adLockOptimistic = 3<br />
Const adUseClient = 3<br />
Set objConnection = CreateObject(&#8221;ADODB.Connection&#8221;)<br />
Set objRecordset = CreateObject(&#8221;ADODB.Recordset&#8221;)<br />
objConnection.Open &#8220;DRIVER={Microsoft ODBC for Oracle};UID=;PWD=<br />
&#8221;<br />
objRecordset.CursorLocation = adUseClient<br />
objRecordset.CursorType = adopenstatic<br />
objRecordset.LockType = adlockoptimistic<br />
ObjRecordset.Source=&#8221;select field1,field2 from testTable&#8221;<br />
ObjRecordset.ActiveConnection=ObjConnection<br />
ObjRecordset.Open &#8216;This will execute your Query<br />
If ObjRecordset.recordcount&gt;0 then<br />
Field1 = ObjRecordset(&#8221;Field1&#8243;).Value<br />
Field2 = ObjRecordset(&#8221;Field2&#8243;).Value<br />
End if</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/how-to-connect-to-a-database/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How can i check if a environment variable exist or not?</title>
		<link>http://www.bugtest.info/how-can-i-check-if-a-environment-variable-exist-or-not/</link>
		<comments>http://www.bugtest.info/how-can-i-check-if-a-environment-variable-exist-or-not/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:27:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/how-can-i-check-if-a-environment-variable-exist-or-not.html</guid>
		<description><![CDATA[When we use Environment(&#8221;Param1&#8243;).value then QTP expects the environment variable to be already defined. But when we use Environment.value(&#8221;Param1&#8243;) then QTP will create a new internal environment variable if it does not exists already. So to be sure that variable exist in the environment try using Environment(&#8221;Param1&#8243;).value.
]]></description>
			<content:encoded><![CDATA[<p>When we use Environment(&#8221;Param1&#8243;).value then QTP expects the environment variable to be already defined. But when we use Environment.value(&#8221;Param1&#8243;) then QTP will create a new internal environment variable if it does not exists already. So to be sure that variable exist in the environment try using Environment(&#8221;Param1&#8243;).value.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/how-can-i-check-if-a-environment-variable-exist-or-not/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My test fails due to checkpoint failing, Can i validate a checkpoint without my test failing due to checpoint failure?</title>
		<link>http://www.bugtest.info/my-test-fails-due-to-checkpoint-failing-can-i-validate-a-checkpoint-without-my-test-failing-due-to-checpoint-failure/</link>
		<comments>http://www.bugtest.info/my-test-fails-due-to-checkpoint-failing-can-i-validate-a-checkpoint-without-my-test-failing-due-to-checpoint-failure/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:26:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/my-test-fails-due-to-checkpoint-failing-can-i-validate-a-checkpoint-without-my-test-failing-due-to-checpoint-failure.html</guid>
		<description><![CDATA[code:
Reporter.Filter = rfDisableAll &#8216;Disables all the reporting stuff
chk_PassFail = Browser(&#8230;).Page(&#8230;).WebEdit(&#8230;).Check (Checkpoint(&#8221;Check1&#8243;))
Reporter.Filter = rfEnableAll &#8216;Enable all the reporting stuff
if chk_PassFail then
MsgBox &#8220;Check Point passed&#8221;
else
MsgBox &#8220;Check Point failed&#8221;
end if
]]></description>
			<content:encoded><![CDATA[<p>code:<br />
Reporter.Filter = rfDisableAll &#8216;Disables all the reporting stuff<br />
chk_PassFail = Browser(&#8230;).Page(&#8230;).WebEdit(&#8230;).Check (Checkpoint(&#8221;Check1&#8243;))<br />
Reporter.Filter = rfEnableAll &#8216;Enable all the reporting stuff<br />
if chk_PassFail then<br />
MsgBox &#8220;Check Point passed&#8221;<br />
else<br />
MsgBox &#8220;Check Point failed&#8221;<br />
end if</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/my-test-fails-due-to-checkpoint-failing-can-i-validate-a-checkpoint-without-my-test-failing-due-to-checpoint-failure/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How can i check if a checkpoint passes or not?</title>
		<link>http://www.bugtest.info/how-can-i-check-if-a-checkpoint-passes-or-not/</link>
		<comments>http://www.bugtest.info/how-can-i-check-if-a-checkpoint-passes-or-not/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:26:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/how-can-i-check-if-a-checkpoint-passes-or-not.html</guid>
		<description><![CDATA[code:
chk_PassFail = Browser(&#8230;).Page(&#8230;).WebEdit(&#8230;).Check (Checkpoint(&#8221;Check1&#8243;))
if chk_PassFail then
MsgBox &#8220;Check Point passed&#8221;
else
MsgBox &#8220;Check Point failed&#8221;
end if
]]></description>
			<content:encoded><![CDATA[<p>code:<br />
chk_PassFail = Browser(&#8230;).Page(&#8230;).WebEdit(&#8230;).Check (Checkpoint(&#8221;Check1&#8243;))<br />
if chk_PassFail then<br />
MsgBox &#8220;Check Point passed&#8221;<br />
else<br />
MsgBox &#8220;Check Point failed&#8221;<br />
end if</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/how-can-i-check-if-a-checkpoint-passes-or-not/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What&#8217;s the difference between a checkpoint and output value?</title>
		<link>http://www.bugtest.info/whats-the-difference-between-a-checkpoint-and-output-value/</link>
		<comments>http://www.bugtest.info/whats-the-difference-between-a-checkpoint-and-output-value/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:25:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/whats-the-difference-between-a-checkpoint-and-output-value.html</guid>
		<description><![CDATA[Checkpoint only checks for the specific attribute of an object in AUT while Output value can output those attributes value to a column in data table.
]]></description>
			<content:encoded><![CDATA[<p>Checkpoint only checks for the specific attribute of an object in AUT while Output value can output those attributes value to a column in data table.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/whats-the-difference-between-a-checkpoint-and-output-value/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What is checkpoint?</title>
		<link>http://www.bugtest.info/what-is-checkpoint/</link>
		<comments>http://www.bugtest.info/what-is-checkpoint/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:25:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/what-is-checkpoint.html</guid>
		<description><![CDATA[Checkpoint is basically a point in the test which validates for truthfulness of a specific things in the AUT. There are different types of checkpoints depending on the type of data that needs to be tested in the AUT. It can be text, image/bitmap, attributes, XML etc&#8230;.
]]></description>
			<content:encoded><![CDATA[<p>Checkpoint is basically a point in the test which validates for truthfulness of a specific things in the AUT. There are different types of checkpoints depending on the type of data that needs to be tested in the AUT. It can be text, image/bitmap, attributes, XML etc&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/what-is-checkpoint/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Where to use function or action?</title>
		<link>http://www.bugtest.info/where-to-use-function-or-action/</link>
		<comments>http://www.bugtest.info/where-to-use-function-or-action/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:24:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/where-to-use-function-or-action.html</guid>
		<description><![CDATA[Well answer depends on the scenario. If you want to use the OR feature then you have to go for Action only. If the functionality is not about any automation script i.e. a function like getting a string between to specific characters, now this is something not specific to QTP and can be done on [...]]]></description>
			<content:encoded><![CDATA[<p>Well answer depends on the scenario. If you want to use the OR feature then you have to go for Action only. If the functionality is not about any automation script i.e. a function like getting a string between to specific characters, now this is something not specific to QTP and can be done on pure VB Script, so this should be done in a function and not an action. Code specific to QTP can also be put into an function using DP. Decision of using function/action depends on what any one would be comfortable using in a given situation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/where-to-use-function-or-action/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What is the difference between an Action and a function?</title>
		<link>http://www.bugtest.info/what-is-the-difference-between-an-action-and-a-function/</link>
		<comments>http://www.bugtest.info/what-is-the-difference-between-an-action-and-a-function/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:23:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/what-is-the-difference-between-an-action-and-a-function.html</guid>
		<description><![CDATA[Action is a thing specific to QTP while functions are a generic thing which is a feature of VB Scripting. Action can have a object repository associated with it while a function can&#8217;t. A function is just lines of code with some/none parameters and a single return value while an action can have more than [...]]]></description>
			<content:encoded><![CDATA[<p>Action is a thing specific to QTP while functions are a generic thing which is a feature of VB Scripting. Action can have a object repository associated with it while a function can&#8217;t. A function is just lines of code with some/none parameters and a single return value while an action can have more than one output parameters.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/what-is-the-difference-between-an-action-and-a-function/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Can i change properties of a run time object?</title>
		<link>http://www.bugtest.info/can-i-change-properties-of-a-run-time-object/</link>
		<comments>http://www.bugtest.info/can-i-change-properties-of-a-run-time-object/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 18:22:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[QTP]]></category>

		<category><![CDATA[QTP 8.2 Tips &amp; Tricks]]></category>

		<category><![CDATA[QTP Interview Questions]]></category>

		<guid isPermaLink="false">http://www.bugtest.info/2007/can-i-change-properties-of-a-run-time-object.html</guid>
		<description><![CDATA[No (but Yes also). You can use GetROProperty(&#8221;outerText&#8221;) to get the outerText of a object but there is no function like SetROProperty to change this property. But you can use WebElement().object.outerText=&#8221;Something&#8221; to change the property.
]]></description>
			<content:encoded><![CDATA[<p>No (but Yes also). You can use GetROProperty(&#8221;outerText&#8221;) to get the outerText of a object but there is no function like SetROProperty to change this property. But you can use WebElement().object.outerText=&#8221;Something&#8221; to change the property.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugtest.info/can-i-change-properties-of-a-run-time-object/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
