Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Shows subject and test name, but all steps are missing

This is a discussion on Shows subject and test name, but all steps are missing within the Test Director forums, part of the Software Testing category; Hi, I am trying to import a test case written in excel to mercury quality centre 9.0. I have already installed mercury quality center 9.0 microsoft excel add in. I ...

Go Back   Geeks Talk > Software Testing > Test Director
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-19-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
Shows subject and test name, but all steps are missing

Hi,

I am trying to import a test case written in excel to mercury quality centre 9.0. I have already installed mercury quality center 9.0 microsoft excel add in. I have formatted my test case in excel sheet as given in the help document of mercury quality center 9.0 microsoft excel add in. When i run the export to quality centre macro in excel then i get a success message as " you have successfully exported the microsoft excel worksheet to quality centre". I click finish and then when i verify the exported file in testdirector then it only shows the subject and test name but the all the steps are missing. Do anyone have any idea as to why this is happening?


question asked by visitor chandan banerjee

Last edited by Geek_Guest; 05-19-2007 at 06:36 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-13-2008
Banned
 
Join Date: Oct 2007
Location: Hyderabad
Posts: 176
Thanks: 2
Thanked 13 Times in 13 Posts
quality_quantity is on a distinguished road
Re: Shows subject and test name, but all steps are missing

You can refer to "Microsoft Excel 2000 Visual Basic for Applications object model" for a complete listing of Excel methods and properties that can be used within a QuickTest Professional (QTP) script. You can use these Excel object methods within a QTP script to create workbooks, create new sheets, input data, etc.
For a complete listing of Excel object's methods and properties, refer to MSDN Library - Microsoft Excel Object Model (http://msdn.microsoft.com/library/de...pplication.asp).
The following is a sub-procedure that uses Excel object methods to output data from a dictionary object to an Excel file. Attached you will find a working example of a QuickTest Professional test that uses the sub-procedure below. The example will retrieve information from a webpage and output it to an Excel file (info.xls) using the ReportInformation sub-procedure.
In order to run the test, unzip the attached file to a temporary folder, and start QTP with web support loaded:
CPT31467.zip
Example:
Sub ReportInformation(dictionary, filename)
' create the Excel object
Set ExcelObj = CreateObject("Excel.Application")

' add a new Workbooks and a new Sheet
ExcelObj.Workbooks.Add

Set NewSheet = ExcelObj.Sheets.Item(1)
NewSheet.Name = "Page Information"

' loop through all the information in the Dictionary object
' and report it to the Excel sheet
row = 1

For Each key In dictionary.keys
NewSheet.Cells(row,1) = key
NewSheet.Cells(row,2) = dictionary(key)
row = row + 1
Next

' customize the Sheet layout
NewSheet.Columns("A:A").ColumnWidth = 20
NewSheet.Columns("A:A").Font.Bold = True
NewSheet.Columns("B:B").ColumnWidth = 60
NewSheet.Columns("B:B").HorizontalAlignment = -4108 ' xlCenter

' save the Excel file
ExcelObj.ActiveWorkbook.SaveAs filename

' close the application and clean the object
ExcelObj.Quit
Set ExcelObj = Nothing
End Sub
Reply With Quote
  #3 (permalink)  
Old 02-13-2008
Expert Member
 
Join Date: Oct 2007
Location: Mumbai
Posts: 355
Thanks: 4
Thanked 58 Times in 47 Posts
bizzzzzare will become famous soon enough
Re: Shows subject and test name, but all steps are missing

Hi,

I Guess this is attributed to the reason that you have not created a TestMap which Maps all your Excel fields / Testcase fields to those in TD.

Subject, TestName are Mandatory fields which already are part of Testmap and hence these get reflected. Select each listed field from TD and Map it to the concerned Field in Excel. You would find columns like TestStepDescription, StepName, TestData, ExpectedResults etc displayed in the TestMap.

Save the created Map and you can select the same for all other testcases as well.

Cheers...
__________________
Regards,

V.Umesh Krishnan
QA Consultant
Reply With Quote
  #4 (permalink)  
Old 03-28-2008
Contributing Member
 
Join Date: Feb 2008
Location: Hyderabad
Posts: 49
Thanks: 1
Thanked 2 Times in 2 Posts
deepika.padakandla is on a distinguished road
Re: Shows subject and test name, but all steps are missing

Hi,
I guess u hadn't merged the cells Subject.....for example if we have TestName 1 and if it has steps like a,b,c then we need to merge the three rows of Subject and TestName.Then you can give ur stepname,step description,expected results etc.I hope this will help you.

Thanks
Deepika.P
Reply With Quote
Reply

  Geeks Talk > Software Testing > Test Director

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Missing number in the series scott Brainteasers 11 07-26-2009 01:32 PM
I am missing footer part in design process Geek_Guest Java 1 08-22-2008 11:21 AM
Extract only test steps / cases using document generator, Geek_Guest Test Director 0 05-05-2007 02:20 AM
A case of missing folder option ultranet Windows 2 01-27-2007 09:30 AM
Where is the missing £1? psuresh1982 Brainteasers 2 11-30-2006 01:23 AM


All times are GMT -4. The time now is 05:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved