ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How can we test an XML using QTP?

I have been to an interview, where they have given me an 
XML which had 15 values and they have given those values on 
a separate page. They asked me to write a QTP script to 
check the XML is having those particular 15 values.
 Question Submitted By :: Aparna2003
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.
Answer
# 1
You can test xml using xml nodes.

First you need to create xml object.

Set xmlobj=Createobject("Microsoft.xmldom")

Once the object is created you need to know how many nodes 
are there in xml file.

Accordingly we need to specify the xml node path and 
retrieve the values.
 
Is This Answer Correct ?    1 Yes 0 No
Mats
 
  Re: How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.
Answer
# 2
Hello All,
My understanding is that the value stored in an XML file 
interms of "Tag" and "Value". A particular value is 
assigned to a particular tag.
Ex:
<Environment>
	<Variable>
		<Name>servername</Name>
		<Value>10.22.33.22</Value>
	</Variable>
</Environment>

If this XML format is like this then we can write script :
Environment.LoadFromFile("c:\data.xml")
dataToCompare = Environment.Value("servername")

Now we can compare the above value with the required data 
in your separate page.

Note:The above solution is also perfect. In my solution the 
constraint is that (you have to know the name of all 15 
tags)

Make me clear if i am wrong!!
 
Is This Answer Correct ?    0 Yes 1 No
Jitendra
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
1)What is the Difference Between WaitTo & Sync? Wipro2
Which object repository we use in real time and can we merge 2 object repostiory and how? HCL6
what is the exact Diff. Between Test and Component in QTP?  1
What is difference between QTP 8.2 Obect Repository and QTP 9.2 object Repository? Nokia1
Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I have parametrise the agentname and password field. So wen wromg agent name or password is entered it show a dialog box with proper message(Like: "Wrong Password" or :Please enter Password" etc) and OK button. I have created If else block. Now my problem is i want to make checkpoint on error message Dialog box. But each time i create a checkpoint it shows same text message. So how i can check that message is there or not.  2
hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.  2
Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank you.  1
hi i am new to qtp i need to run all files by a batch what is the procedure and what are following actions to be take? ADP1
Write a user defined function to count the no. of buttons existed in a webpage ? i dont want to use descriptive.create () IBM4
if Object repository contain x and y properties. we do not know whether they are mandatory or assistive properties. While executing the script qtp will use both the properties or only sufficient properties to identify the object. It means it use OR (or) AND ADP4
When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)  2
how can i count the number of links???  2
how you will do cookie testing using QTP?  2
what is the diff between Procedure and function iFlex3
is the institute MindQ laid by Mr.Nageswar rao.. heard alot about Nageswar rao...can you briefly let me know about the Nageswar rao inst. and MinQ...THANX IN ADVANCE  15
HI, Anybody can explain Automation Test Framework...and wht do we do before start of Automation..... Siemens2
What are the file extensions for per-action, shared object repository files and what is the extension for library files? Semantic-Space5
I want to test advanced Java applications what kind of add- ins I have to install?  1
tell me types of environment variables? what r they? explain details? pls give anwer any one? IBM2
I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com