RQMExcelWordImporter - import image
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!?? :?:
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
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
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