I would like to directly import XL file and work on that XL
file directly in QTp script in that XL sheet need to
allocate workbench,XL sheet and generate two bar graphs
automatically how to do that? plz let me know any answers?



I would like to directly import XL file and work on that XL file directly in QTp script in that XL..

Answer / Ajay Kumar Kushwaha

To achieve this, you can use the QuickTest Professional (QTP) Excel Object Model to interact with your Excel file directly within your script. Here's a simplified step-by-step guide:
1. Load the Excel file using the `Excel.Application` and `Excel.Workbook` objects.
2. Create a new Worksheet object from the workbook.
3. Allocate the worksheet to the QTP workbench by setting the `TestObject` property of your Desktop or Window object to the worksheet object.
4. To generate bar graphs, you can use the `Chart` and `SeriesCollection` objects in Excel. First, add a chart to the active sheet using the appropriate chart type (e.g., `barChart`), then create a new Series object for each set of data you want to plot.
5. Finally, set the `Name`, `XValues`, and `Values` properties of your series objects accordingly.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Explain about Test Fusion Report of QTP?

1 Answers  


write vbscript in qtp tool for senario, in the given sheet add each number in each row and each colunm and show result

3 Answers   Mind Q Systems,


what is the hierarchy to use properties in descriptive programming

1 Answers  


What is the difference between Accessibility Checkpoint and Bitmap Checkpoint in QTP? Note: I have read it in QTP help but i dont want answer from that.......

1 Answers  


Explain Descriptive Programming Types with Examples?

1 Answers  


in my application,validation message has in japanise language.how to validate this message is appears properly or not

1 Answers  


Which Databases supports for QTP?

2 Answers  


How to do Laod testing for web based Application?

1 Answers  


How many types of recording facility are available in quicktest professional (qtp)?

1 Answers  


How to retrieve the property of an object in QTP?

5 Answers  


Explain the difference between call to action and copy action?

1 Answers  


Which environments does qtp support?

1 Answers  


Categories