It's all about the answers!

Ask a question

RQMExcelWordImporter - import image


Søren Wassard (161212) | asked May 18 '11, 5:25 a.m.
Hi all,

I have tried to import a test case with linked test script, and in the test script I would like to have an image as part of the description.
So far I have failed to import an image to the field description. I used the syntax;
testscript.steps.description=image(A)

In the sample files it is sated that you can import images to the Expected results coloumn, and this part works (partly) fine;
testscript.steps.expectedResult=image(B)

So, shouldn't it be the same for the description field ??

And also, if an image is imported, it doesn't seem to import the text from the specific cell, but only the image, and I tried to run this;
testscript.steps.expectedResult=B
testscript.steps.expectedResult=image(B)

but that faild with a;
System.ArgumentException: Item has already been added. Key in dictionary: 'expectedResult' Key being added: 'expectedResult'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at Mso2Rqm_Common.PreferenceStore.load()
at Mso2Rqm_Common.ArtifactFactory.createArtifacts(String configFile, Workbook workbook, String sProjectName)
at RQMExcelExporter.ExcelExportRepositoryDialog.handleExportToRepository(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

So, what to do - I'm a bit lost here!?? :?:

2 answers



permanent link
Diane Everitt (27835) | answered Oct 10 '13, 5:05 p.m.
Hello Soren and Celine,

Please use the following syntax to get the text and image from the same cell in Excel spreadsheet in to the test script:

testscript.steps.description=A & " " & image(A)

testscript.steps.expectedResult=F & " " & image(F)


You may need to download/install the latest version of the RQMWordExcelImporter (4.0.4) from jazz.net:

The RQMExcelImporter 4.0.4 can be downloaded from:
 
https://jazz.net/downloads/rational-quality-manager/releases/4.0.4?p=allDownloads
 
Scroll down to Microsoft Excel and Word to Rational Quality Manager Import Utility.

Note that it is compatible with RQM 4.0.x.

I hope this helps.
Best regards,
Diane


Comments
Celine Granger commented Oct 11 '13, 3:56 a.m.

Thank for your answers, you resolved my problem.


permanent link
Celine Granger (1122) | answered Oct 10 '13, 11:27 a.m.
Hello, I go back this question!

I have the same problem and I hope someone help us.
I tried also this syntaxe but alone in result : image, can we have image and text in the same cell?

testscript.steps.expectedResult=B
testscript.steps.expectedResult=image(B)

Thanks

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.