Você está na página 1de 40

22/10/2015

TestLinkImport:TestLinkImport

Ms Siguienteblog

Crearunblog Acceder

TESTLINKIMPORT
T H U R S DA Y , NO V EMB ER 12, 2009

FO LLO W ER S

TestLinkImport

Jointhissite

Update:13August2012

withGoogleFriendConnect

Members(14)

HiAll,
SorrytotheguysaskingmehelponTestlink1.9.x:(Ihavestopped
workingnowanddonothaveaccesstoTestLinkServer.But,inany
case,doletmeknowifanybodyhasademoserverforthelatest
TestLinkversionoratleasttheXMLversionofRequirementsandTest

Alreadyamember?Signin

CasesexportedfromTestLink.
ThanksandRegards,

BLOG ARCHIVE

Gowri

2013(2)

***************************
Update:12Jan2012:HiAll,

2009(1)
November(1)
TestLinkImport

Thankstothosewhohelpedotherreadersovercometheirissueswith
thismacro.Iamnowgoingtoworkontroubleshootingtipsandalso
upgradingthismacro.So,pleasekeepfollowingthisblogandgo
throughthecomments(therearesomanyhelpfulcomments)ifyou
haveanyissueswiththismacro.

ABOU T ME
G OW RI
V I EW MY CO MP LET E P R O FI LE

Thanks.
****************
Ihavecreatedanexceltemplatewithmacrotogeneratexmlfor
importingrequirements/testcases/testsuitestotestlink.Thismacro
willgeneratetwoxmlfilesoneforrequirement(excelsheet
name_Req.xml)andoenfortestcases(excelsheetname_Tc.xml)
LinktoExcelSheet:
http://spreadsheets.google.com/ccc?
key=0AjBCa6US6n8TdDF1Zk1hNGd1MGtHYnJhSVhTVUxoZFE&hl=e
n
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

1/40

22/10/2015

TestLinkImport:TestLinkImport

Linktomacro:(Savedas.txt.Pleaseopenthevbaeditorinexcel,
copypastethetextandsave)
http://docs.google.com/Doc?
docid=0ATBCa6US6n8TZGRodmh3Y2hfM2N4dmZrYmc1&hl=en
Importssupportedareasfollows:(ThetableshouldstartfromRow1,
Column1asgiven)
ImportRequirements:
TheExcelformattobeusedisgivenbelow.
SpecTitle:TheRequirementSpecificationTitle(Thiscanbe
leftempty,sincethisisonlyformappingrequirementswithtest
cases.But,thiscolumnmustbepresent.)
DocumentID:Thisistheuniquerequirementreference
number.(Mustbeuniquewhenimportingrequirements.But,
whenimportingtestcasesortestsuiteswithrequirements,
multipletestcasescanbemappedwithsinglerequirement.For
moredetails,pleaseseeotherimportformatsbelow.
ReqTitle:Thisisthetitleoftherequirement.Thisisalso
unique.EachDocumentIDismappedwithaReqTitle.
Description:Thisisthedetaileddescription(Scope)ofthe
requirement.

ImportTestCases:
TheExcelformattobeusedisgivenbelow.
TC#:ThisistheTestCaseSerialNumber.Itshouldstartfrom1
andbeinsequence.Thisisalsounique(evenacrosstestsuites).
Name:ThisistheTestCaseName.Thisisalsouniqueforatest
case.
Summary:ThisistheTestSummary,abriefabouttheTest
Scenario.
Steps:Thissectionisforwritingthestepsforexecutionofthe
testcase.
ExpectedResults:Thisistheresultsexpectedonexecuting
thetestcase.

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

2/40

22/10/2015

TestLinkImport:TestLinkImport

ImportTestSuiteswithTestCases:
TheExcelformattobeusedisgivenbelow.
Name:NameoftheTestSuite.TestCasesmustbegrouped
undereachTestSuiteexactlyasgivenbelow.Thisisunique.
Details:DetailsabouttheTestSuite.

ImportTestCaseswithRequirements:
TheExcelformattobeusedisgivenbelow.

ImportTestCaseswithCustomfields:
TheExcelformattobeusedisgivenbelow.

ImportTestCaseswithCustomFieldsand
Requirements:
Theexcelformattobeusedisgivenbelow.

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

3/40

22/10/2015

TestLinkImport:TestLinkImport

ImportTestSuitewithrequirements:
Theexcelformattobeusedisgivenbelow.

ImportTestSuitewithTestCaseshavingCustom
Fields:
Theexcelformattobeusedisgivenbelow.

ImportTestSuitewithCustomFieldsand
Requirements:
TheExcelformattobeusedisgivenbelow.

Feelfreetouseitandletmeknowyourcomments.

P O S T ED B Y G O W R I A T 8: 58 P M
LA B ELS : I MP O R T , R EQ U I R EMENT S , T ES T , T ES T LI NK

163CO MMENTS:
rahul December3,2009at3:07PM
Thiscommenthasbeenremovedbytheauthor.
Reply

rahul December3,2009at3:13PM
Higowri,

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

4/40

22/10/2015

TestLinkImport:TestLinkImport

Thank you for posting info on testlink. I am working on


importing testcases with custom fields to testlink. I have used
the macro in my excel sheet but i dont see xml file
generated.canyoupleasehelpmeinmovingforwardbygiving
some info on generating xml file and importing to xml.Also
pleaseshareifyouhavesomedocument.
Thanksinadvanceforyourhelp,
Regards,
Reply

rahul December3,2009at3:40PM
HiGowri,
Ifoundwherexmlgettingstored.canyoupleaseletmeknowif
itispossibletoimportrequirementswithcustomfieldsjustlike
importingtestcaseswithcustomfields.
Regards,
Reply

bharathi December4,2009at2:15AM
Hi,
IamusingthisscriptfortestsuiteuploadingandeditedtheXL
sheetasperthis.
I am getting some compile error while running this macro.
couldyouhelpme.
Thanks
Bharathi
Reply

rahul December7,2009at7:17PM
Followingarethestepsifollowed,
a)CopythemacroandpasteinurVBAeditor
b)ThensavethefileasMacroenabledexcelworkbook.Then
tryrunningmacro.
Hopethishelps...
Reply
Replies
David,Kacey,&ChanChan June4,2014at
12:58PM
Iamalsogettingasyntaxerroronthelastfunction.
I copied and pasted directly into the VBA project
workbook.Itisonthe"FunctionlastColumn..."and
"lastColumn=..."lines.Anyhelporadvice?
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

5/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

Nelson December10,2009at7:11AM
HiGowri,
Greattool!!
WhatifIwanttoassociatekeywordstomysuite/testcase?Can
Iaddanadditionalcolumn?
Thanks!
Nelson
Reply

Gowri

December14,2009at5:39PM

HiRahul,
TestLinkdoesnotsupportimportingrequirementswithcustom
fields.Onlyimportingcustomfieldsfortestcasesissupported.
Regards,
Gowri
Reply

Gowri

December14,2009at5:40PM

HiBharathi,
I can help you if you can post details about the error you are
getting.
Regards,
Gowri
Reply

Gowri

December14,2009at5:45PM

HiNelson,
Weneedtoaddanewcolumnandalsomakecodechangesin
the macro for importing test cases with keywords. It becomes
troublesome if you need to import test cases with more than 1
keyword. For now, I can work on importing test cases with a
singlekeyword.Pleasewaitformyupdateonthis:)
Reply

Anonymous December18,2009at6:34AM
txalot!itsveryhelpfull
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

6/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

sprydas@gmail.com January12,2010at8:58PM
Canyoupleasetellmehowwhereisthexmlfilestored
Reply

Gowri

January13,2010at1:28AM

Thexmlfileisstoredinthesamelocationinwhichyourexcel
fileisstored.TheXMLforimportingRequirementsisstoredas
(your excel file name)_Req.xml and the XML for importing
TestCasesisstoredas(yourexcelfilename)_Tc.xml.
Hopethishelps!
Reply

Anonymous March25,2010at3:35PM
HiGowri,
When i am trying to import requirements they all are getting
loadedunderonefolder.Nowihaveenabletree(node)structure
intestlink.Canyoupleaseletmeknowificanimportthereqs
indifferentfolderwhenloading.
ManyThanks
Testlinkuser
Reply

KenH April1,2010at6:51PM
HiGowri:
Whatagreatpluginandtemplate,ithasnotonlybeengreatfor
importing test cases, but has really helped me to get started
understandingTestLinkaswell.
One defect I have found is that if the data in an Excel cell
containsquotes("")thenthescriptwillnotcreateavalidfile.
Looking forward to the enhancement that will allow multiple
keywords, they are a large component of our TestLink
implementation.
Reply

Gowri

April1,2010at9:50PM

@Anonymous,
Wehavenotenabledthetreeviewforrequirements.So,Idon't
thinkIcanworkonthisfornow.
@Ken,
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

7/40

22/10/2015

TestLinkImport:TestLinkImport

Thefileswillbecreatedifyourcellshavedoublequotes.Butif
the double quotes are special characters that look like open
quotesandclosequotes(slantingtowardsoneside)unlikethe
straightlookingdoublequotes,avalidfilewon'tbecreated.So,
please replace those double quotes with ordinary ones using
'Replace All' twice (one for open quotes and one for close
quotes).Hopeiamnotconfusing!!!!
Reply

MedAtef April19,2010at4:59AM
hiGowri,
gooodjob,
but when i import the .xml generated, the "TestLink" say :"
WrongXMLtestcasefile"
canyouhelpmeplzz
Reply

Raghuram July17,2010at12:27AM
ExcellentPostGowri.Keepitup.
Reply

Anonymous July23,2010at4:38AM
Hello,
IhavethesameproblemasMedAtef.WhenItrytoimportthe
xml,thereisthemessage"WrongXMLtestcasefile"
Canyouhelp?
Thankyou
Reply

Gowri

July26,2010at12:22AM

HiMedAtefandAnonymouswith"WrongXMLtestcasefile"
error.PleasecheckthatyourxmlfileopensproperlyonInternet
Explorer. Also make sure to choose Test Suite or Test Case
importappropriately!DoletmeknowtheresultssothatIcan
helpyoufurther!
Reply

Ann August3,2010at5:38AM
HiGowri,
thanks for your help. The xml file didnt open on Internet
Explorerwiththemessagethatthereisawrongcharacter.SoI
checked my testcases and the problem were the german
"Umlaute"like,,etc.Nowthemacroworkscorrectly.
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

8/40

22/10/2015

TestLinkImport:TestLinkImport

Thankyou!
Greetings,Ann(Anonymous)
Reply

Deepak October11,2010at5:42AM
Hi,
IwanttoexportmytestcaseswritteninExceltotestlinkItried
theaboveproceduresbyusingmacros.Butnoluck.
Iwasabletogeneratethexml.Butiwasunabletouploadthe
sametotestlinkduetobelowerrormessage:
"wroungxmltestcasefile."
Itwillbeverygreatfullifanyonecanhelpmkeinthisregards.
Reply

Anonymous October27,2010at12:36AM
Hi,Gowri,
Iusedtestlink19.beta3.IfoundthatimportXMLResultdisplay
itissuccess,butthedatadon'tupdateinthedb.
ImportTestCasedata:TestCase15version1Tester:lyk
Result:passedExecutionTimestamp:'2010102715:34:54'
Imported!
TheDBnotupdated.Doyouknowwhy?Thankyou!
Reply

Anonymous November12,2010at5:46AM
HiGowri,
Thankyousomuchforyourtemplateandmacro!Itisworking
great,itishelpingmealotwithmyworkwithTestlink.
Reply

Anonymous December30,2010at12:38AM
Hello,
Didyoumadeanupdatefortestlink1.9(Prague)version?
Reply

Sue January18,2011at8:45AM
Greattool,justsavedmeatonoftime!
Thereisasimplewaytoupdatethisscriptfortestlink1.9,butit
willonlyimportthestepasonestepandexpectedresult.asper
thislink:
http://www.teamst.org/forum/viewtopic.php?
f=11&t=3287&start=0
youcandoasearchandreplaceintheVBAcodewherethexml
isgeneratedfortheelement.Iverifiedthisworks.Iamgoingto
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

9/40

22/10/2015

TestLinkImport:TestLinkImport

see if I can enhance this vba code to allow for multiple step
import.IwillpostthecodeifIgetittowork.Notewearenot
planning to import requirements, so I'm not sure if there are
changestoxmlthereaswell.
Reply
Replies
JoshEbel November19,2012at2:46PM
Thiscommenthasbeenremovedbytheauthor.

JoshEbel November19,2012at2:49PM
HerearethechangesImadefromtheposttogetthe
MacroimportingtoTestLink1.9.3withsteps.
http://pastebin.com/wapuG1fC
Thanks,
Josh

Unknown December10,2012at8:49AM
HiJosh,
Itriedtouseyourmacrobutitimportedeachstepas
aseparatecase.
Could you upload a sample sheet for us to see the
layout.
Reply

Anonymous February10,2011at3:38PM
Howtogetletsay8stepsand8expectedresultspertestcase,I
can'tfigureout.Ifthemacroneedtobechange,canwesethe
changetobemade?Thanks
Reply

Anonymous February11,2011at12:57PM
Sue, did you get success with changin the VBA code for the
multiplestepimportfor1.9?Ifyes,whereisitposted?
Reply

Anonymous March3,2011at7:00AM
HiGowri,
Greattoolandsosimpletouse!Workedlikeacharmthevery
first time. For importing testcases with steps in TL 1.9, the
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

10/40

22/10/2015

TestLinkImport:TestLinkImport

macrohastobeslightlychangedReplacewith""
andvoila!
OnequestionthoughHowdoIimportTestresultsandNotes?
Itriedaddingthetagsb
blockierttotheXMLbutitsnotgettingimported.
Anysuggestions?
Tx,
Sands
Reply
Replies
Gowri

August13,2012at6:58AM

HiSands,
I have not used import function for the test results.
But,youcanexportatestcasethatalreadyhasthe
Test Result, look at the XML and make changes to
themacroaccordingly.
Reply

Anonymous April25,2011at9:43PM
Doesanyonehavethelatestmacrowhichcanbeusedtoimport
test cases with multiple steps? Highly appreciate if they can
sharethemacrocodehere.Thanks!
Reply

Anonymous November21,2011at2:26AM
Anysuggestionsconsideringtheumlautproblem?Asagerman
user, i cant import requirements or testcases to TL because of
thisproblem.
Reply

Anonymous November22,2011at5:52AM
Hi, I have a different problem regarding requirements import:
Ourrequirementsweresuccessfullyimportedandshowcorrect
Umlauts, however if we SEARCH requirements (by scope) it
won'tfindanythingwithanUmlautunlesswe"escape"themto
htmlentities in the search entry field, e.g. instead of
"bersetzung"wiemusttype"bersetzung"...anytrickhereto
havetestlinkdothisforusautomatically?
Reply

Gowri

November22,2011at6:30AM

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

11/40

22/10/2015

TestLinkImport:TestLinkImport

@Anonymous November 22, please check if details this URL


cansolveyourproblem.
http://www.daniweb.com/web
development/php/threads/232363
Also,ifyoucanexplainhereforAnonymousNovember21on
howyoudealtwithumlauts,itwouldofhelptosomepeople.I
guessithassomethingtodowithsettingencodingtoUnicode
in the XML generated. But I am not sure how. Please share
hereifyouareaware.Thanks.
Reply

Gowri

November22,2011at6:37AM

@Anonymous April 25, multiple steps can be inserted by


keepingallthestepsinthesamecellandusingXMLlisttags.
(I have removed angle brackets on both ends of line. Pls
includeit)
Eg:
ol>
li>step1<\li
li>step2<\li
<\ol
Hopethishelps!
Reply
Replies
Anonymous January12,2012at11:14PM
Couldyoukindlyexplainalittlebitindetailhowto
implementthesestepsinthemarcoinordertohave
multiplestepsandexpectedresults?

Gowri

August13,2012at6:45AM

Youneedtoincludethisintheexcelcolumnthathas
multiple steps.you need not do anything to the
macro.
Reply

Gowri

November22,2011at6:42AM

For those who receive the wrong XML error, please open the
generated file in IE and check if it opens properly. Otherwise
there may be some special characters, which need to be
removed. Also, there are 2 different types of import. One is
importtestsuitesandtheotheristestcaseswithinatestsuite.
Pleasemakesureyouchoosetherightone.
Reply
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

12/40

22/10/2015

TestLinkImport:TestLinkImport

Anonymous December22,2011at1:12AM
Hi,
I'm using Testlink1.9.3 Version. i'm able import the cases via
XML..Butnotabletoimportviaxls..infact,i'vetriedusingthis
templateaswell..butnoluck..
for me xml is not getting generated.. i think, there something
wrong i'm doing it.. not able to debug.. i've followed exactly
samestepsbut..nothingheppens..anyhelppls..
Reply

Anonymous December22,2011at1:15AM
Cananyone.provideexactsteps..whichneedtofollowtouse
thistemplate.
Reply

Gowri

December22,2011at1:47AM

@AnonymousDec22,2011:youCANNOTupload(import)the
excel directly in testlink. You need to use the macro and
generatetheXMLusingtheexcelwiththestepsEXACTLYas
mentionedintheblog.
Reply

Anonymous December22,2011at2:09AM
Thanks for the info so quickly. i really appreciate .. atleast i
wasnotawareof..but,thereisanoptiontoimportXLSTL.
another point.. how to generate the xml file.. after putting
macroinVBA,andsavingasmicroenabledfile..whatneedsto
bedone..?
Reply

Anonymous December22,2011at10:33PM
Kindly help for how to generate xml from xls.. very urgently
needed..igotstuckup..
Reply

Gowri

December22,2011at11:18PM

Youneedtorunthemacrofromtheexcelsheet.Itwillgenerate
2XMLfiles.Oneforrequirementsandonefortestcases.
Reply

Anonymous December22,2011at11:26PM
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

13/40

22/10/2015

TestLinkImport:TestLinkImport

Afterrunningthemacro,gettingCompileerror....syntaxerror
@"IfreqColCount0Then"
whatisthesolutionforthis..?
Reply

Gowri

December23,2011at7:00PM

Lookslikeyoudon'thaveanyrequirementstoimportfromthe
excelsheet,butstillhavetherequirementscolumnintheexcel.
You need to read and understand the steps without blindly
followingthem.
Reply
Replies
Anonymous May10,2012at12:27AM
HiGowri
Greetings!!!!
stillwearehavingissuesinimportingthetestcases
in testlink 1.9.3. Could you please help us with an
excel sheet where we can write the testcases and
generate XML and upload it to testlink. We are
usingversion1.9.3
sreeram.krishnaattttgmaildotcom
Reply

Anonymous December29,2011at5:25PM
Havetoreplacethe""with"<>",etctosolvesyntaxerrors.
Also, have to set the options in Excel2010 to "Dev mode" by
File>Options>CustomRibbon>checkboxDeveloper.
ItthenWorksGreat!
Greatjob!
Muchappreciated!
Reply

Anonymous January5,2012at9:15AM
Hi,
EverythingisworkingperfectbutIamnotabletoimportsteps
andexpectedresultbyxmlgeneratedfrommicro.
canyoupleasehelpmeout?
Thanksinadvance.
Raj
Reply
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

14/40

22/10/2015

TestLinkImport:TestLinkImport

Anonymous January11,2012at12:17PM
ToRaj,
InTestlinkManuallycreateatestcasewithstepsinit.
ThenexportthattoXML.
InspecttheXMLyouwillfindthatyouneedtomodifytheCase
Statementfor"Step".
Reply

Anonymous May10,2012at3:04AM
Hiraj,
Wearestillfacingthesameissuein1.9.3Stepsarenotgetting
imported.Couldyoupleasehelpusonthis
sreeramdotkrishnaatgmail.com
Reply

Rhea July3,2012at11:33PM
Hi,
Iamfacingsomeissuewhileimportingxlsfile.
It displays an error "The filename C:\wamp\www\testlink
1.9.0\testlink
1.9.0\gui\templates_c\ub7qqr6qtq87v3h2t5hpderkg3
importtcs.xls is not readable" Could you Please Help me with
thisissueandletmeknowASAP
Reply

SushmithaSivan July19,2012at9:48AM
Sameissue..notabletoimportstepsandexpectedresultsusing
xmlfile.Muchappreciatedifyoucouldhelp.
Sushmitha
Reply

Anonymous August13,2012at4:11AM
HowcanIupdatemytestcasewithchangingitstestcaseID
and without updating one by one as I need to update almost
100hundredtestcasesbeforeexecution.
Reply

Anonymous August13,2012at4:32AM
I am using TestLink 1.9.3. How can I update my test case
withoutchangingitstestcaseIDandwithoutupdatingoneby
one as I need to update almost 100 hundred test cases before
execution.
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

15/40

22/10/2015

TestLinkImport:TestLinkImport

Reply
Replies
Gowri

August13,2012at6:38AM

Hi,
To update already existing test cases on testlink,
followthestepsbelow:
1. Export the test cases to be updated, from testlink
inXMLformat.
2.OpenthegeneratedXMLfileinMicrosoftExcel.
3.MaketherequiredchangestotheXMLfileusing
MicrosoftExcel.
4.SavethefileinXMLformat.
5. Upload this file in testlink using the import
functionasusual.
Reply

LisaK August23,2012at7:54PM
Hi,
Managed to get the xml generated for a single test case with
multiple steps. However, when I import, the steps are not
importedthetestcaseisappearingonthetreewithsummary.
I tried to import only a single test case with multiple steps
(usingthelisttagassuggestedinonecomment)andusedthe
import from the Test Case level. Can you please help in
identifyingtheissue?
Reply
Replies
Gowri

August23,2012at9:35PM

Hi,
Thelisttagworksonlyfortestlink1.8.xandnotfor
1.9.x as the database has changed. You can export
one test case with multiple steps. Look at the XML
andchangethemacroaccordingly.
Reply

DigvijayBisht August31,2012at4:06AM
Can you please send me the macro to upload requirement
specification to testlink along with the main suite and sub
suite.MyEmailidid:Digvijay.won@gmail.com.
Thanks
Digvijay
Reply
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

16/40

22/10/2015

TestLinkImport:TestLinkImport

Replies
Gowri

September12,2012at5:45PM

Ihavesharedthemacrotohelpyou.Itisuptoyouto
modify it according to your own requirements.
Pleaserefrainfrompostingsuchrequests!
Reply

Anonymous September5,2012at11:21AM
HiGowri,
SeemstobepeopleareusingdifferentversionsofTestlink1.8.x
OR 1.9.x, different Excel 972003 OR 2010. And that is
causingconfusionamongpeople.Fewthingsworkingforsome
people&fewnot.
If you could write a general comment from architect
perspective,itwouldhelpall.
By architect perspective I mean, how testlink behaves
differently in case of 1.8.x & 1.9.x at the same time for Excel
2003,2007&2010.
Also I would appreciate, if you could also mention how to
generate/write this macro code depending upon requirements
whatpeoplewanttoimportfromExcel>XML>Testlink.
Thanks,
Ravi
Reply
Replies
Gowri

September12,2012at6:08PM

HiRavi,
Thanks for your comment. But I hope you
understand that it is NOT my job to find out the
difference betwwen different testlink/excel versions
andexplainittopeople.
I am only sharing my work so it will be helpful to
somepeople.Then,itisuptoyoutounderstandwhat
itisdoing(IhaveprovidedasmuchcommentsIcan
inthemacro).
Youarefreetousemymacro,modifyit.YOUhaveto
putinthat'littleeffort'tounderstandthemacroand
makeitworkforyou.
Also, I would appreciate, if you can share your
findings,IFyouputinthatextraeffort...
Regards,
Gowri
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

17/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

RayZhang September12,2012at9:12AM
Ididthefollowing:
1.OpenthetemplatewithExcel2012.
2.EnableDevelopertab.
3.OpenVBeditorViewCode
4.PastetheMacrotext.
5.Saveitas"ExcelMacroEnabletemplate(*.xltm)"
6.Openthexltmfile.
7.Run"Sheet2.genRegnTcArr"Macrofile.
8.AndThenget"400"error.
Wouldyoupleasehelptofigureouttheissue?
Thankyouverymuch.
Reply
Replies
Gowri

September12,2012at5:58PM

HiRayZhang,
Willyoubeabletoshareyourexcel?(youdon'tneed
tohaveanydatainit)
Regards,
Gowri
Reply

Margotsevignymartin September13,2012at8:49AM
the imported test cases do not have steps is there an updated
versionthatsuppliesthis?
Reply
Replies
Gowri

September13,2012at5:52PM

HiMargot,
ThismacrowillworkonlyforTestlinkversion1.8.x.
For version 1.9.x you need to modify the macro as
the XML has changed because of Testlink DB
change in 1.9.x. You can read through the
comments for some guidance on modifying the
macro,asIdon'thaveaccesstoTestlink1.9.xright
now.Sorryfornotbeingtoabletohelp.

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

18/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

Anonymous September17,2012at7:14AM
I'm also using the TestLink version 1.9.4. Everything works
great with the macro, but I still have the problem to generate
steps and the expected results. Does anybody have a solution,
whichcanbeexplainedindetail?
Thanksalot...
Reply

Anonymous September18,2012at1:08AM
Hieverybody,
hereisagainthe"Anonymous"fromSeptember17,2012.There
is another question I've forgot yesterday: What is with the
preconditionsyoucanaddtothetestcasesinTestLink1.9.4?Is
therealsoanopportunitytowritethepreconditionsintheexcel
sheetandimportthemtogetherwiththeotherinformationsin
TestLink?
Iwouldbeverygratefulforhelp!
Reply

siva September26,2012at12:29AM
HiGowri,
when I run the macro am getting compile error as "Expected
EndSub".Couldyoupleasehelponthis.
Ihaveusedthesameexcelfileasyoushownabovein"Import
TestCase"
Thanks,
Siva
Reply
Replies
Gowri

September26,2012at3:06AM

Take a look at your macro. For every 'Sub' there


MUSTbean'EndSub'
Reply

Siva September27,2012at11:06PM
Hi,
NowIcanrunthemacroquerywithouterrorbutXMLfilenot
generated.
Pleasehelp,
Regards,
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

19/40

22/10/2015

TestLinkImport:TestLinkImport

Siva
Reply
Replies
Gowri

September28,2012at3:19AM

I can help you with this only if you share your xls
with me. Without it, I really can't make out what's
wrong...
Reply

Elissa October5,2012at11:23AM
Iget:Thewebpageat...mightbetemporarilydownoritmay
havemovedpermanentlytoanewwebaddress.
Arethedocup?pls,couldgivemeotherlinks?
DoesthemacroworkforTestLink1.9.4?
Reply
Replies
Gowri

October5,2012at10:25PM

HiElissa,
I have checked the links to be working fine. Please
try again. The macro works for 1.8.x. You need to
modifythemacrotomakeitworkfor1.9.x.
Regards,
Gowri
Reply

Anonymous October19,2012at10:46PM
Canyoupastethechangesneededtomakethemacroworkfor
1.9Ihavebeenbangingmyheadtryingtofigurethisoutfor
thelasttwohours.
Reply
Replies
Gowri

November8,2012at2:54AM

Sorry as mentioned above, I do not have access to


Testlink1.9.x.
Reply
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

20/40

22/10/2015

TestLinkImport:TestLinkImport

Anonymous November7,2012at11:31PM
Iwaswonderingifyoucouldimportthetestcaseswithalinkto
arequirementittests?Soyoudon'thavetodothelinkinginside
testlinkonebyonewithamouse...
Reply
Replies
Gowri

November8,2012at3:04AM

Yes you can. Please refer to 'Import test cases with


requirements'sectionabove.
Reply

nmskarthik November20,2012at1:55AM
IamnewtoTestlink.Ihaveaddedonlyonetestsuiteandone
test case under that and try to umport to Testlink. Getting
"WrongXMLtestcasefile".Couldsomeonehelpmetoresolve
theissue.
Note:Iamabletoopenthexmlfileinexplorer.
Reply

Anonymous November27,2012at2:31PM
ThanksalotfortheMacro.
Ihaveissuesinimportingthedataofthecustomfields.
IamusingTestLinkversion1.9.3.Ihavetwocustomfieldsin
myexcel.Whileimporting,Iseenoerrormessagethrowingout
in Test Link. But when I look into the .xml file, I see that
instead of reading one cell of the custom field, the whole
complete columns are read and then it is moved to the next
customfielddatafirstrow.Fromthereitreadsagainthewhole
columnsofthesecondcustomfielddata.
Iwantthecustomfielddatatobereadbypertestcase.Butthis
isnothappening.IamnewtoTestLinkandtotheVBscript.
Couldanybodypleasehelpmeoutonthis?
Reply

Anonymous December12,2012at12:24PM
HiGowri,
Thanks for all your efforts to bring all under one roof. i was
using your vb code and trying to enhance, where as to add
"Keywords"and"ExecutionType",
but am getting an error while adding and not able to run
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

21/40

22/10/2015

TestLinkImport:TestLinkImport

Macro.
Yourhelpisneeded.
Thanks
Sridarr
Reply
Replies
Gowri

December12,2012at9:38PM

HiSridarr,
Youwon'tbeabletousethemacrofor1.9.xasitwas
written for 1.8.x, as the database has undergone
changesbetweenthese2versions.
Regards,
Gowri
Reply

Anonymous December12,2012at2:40PM
HiGowri,
AsperyourxmlconvertcodeandxlstemplateinTestLink1.9.3,
i am not getting Steps and Expected results. can you please
helpmeonthis.
Thanks
MKT
Reply

Gowri

December12,2012at9:39PM

HiMKT,
Youwon'tbeabletousethismacrofor1.9.xasitwasmeantfor
1.9.x.
Regards,
Gowri
Reply

Anonymous December14,2012at3:21PM
HiGowri,
thanksforyourreply,ihavesomecustommademacrowhichis
currentlycreatingXMLandusingwith1.9.3ver.
ButitisveryuncertainwheniamimportingXMLfortestcases
with requirement mapping sometime is the import is failing
andnotsurewhy,ifjustaddfewtestcasesitworks,thenagian
givinganerrorasimportingFailed.
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

22/40

22/10/2015

TestLinkImport:TestLinkImport

Couldyoupleasetellmeifyouhaveanyothersolutionforthis.
Thanks
MKT
Reply
Replies
Gowri

December14,2012at4:20PM

HiMKT,
IwillbeabletohelpyouifIcanseeyourexcelsheet
along with the macro. Otherwise, I can't know
what'swrong.
Regards,
Gowri
Reply

Anonymous December14,2012at11:00PM
Hi Gowri. thanks for your prompt reply. please find the
attachedxlswithmacro.
Reply
Replies
Gowri

December15,2012at2:12AM

Hi,
Pleaseletmeknowifthemodifiedmacroworksfine.
By the way, please check the generated XML by
openingitinabrowser,beforeusingitforimport.
Regards,
Gowri
Reply

SRIDARR December14,2012at11:03PM
HiGowripleaseshareyouremailidtosendthesame
Thanks
MKT
Reply

AlpayErsoy December20,2012at4:19AM
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

23/40

22/10/2015

TestLinkImport:TestLinkImport

HiGowri
Can you please share your email id. I have used the versions
youhavepostedfromnearly2yearsagoandhaveaddedsome
enhancementsonthewaysuchas:
Addingchecksandnotifyingusertocommonusermistakesin
theinputExcelsheet:
+Notnumberingtheexecution/expectedresultsteps.
+Execution/ResultStepisnotnumericnorabullet.
+Emptylinesinsteps.
+Moreexpectedresultsthenactionsteps.
+ Generated XML filesize is larger than the size supported by
TestLink.
+ Sanity checks against common TestLink's import warning
xml_load_ko
Characterconversionforunsupportedcharacters
The code base has increased quite a bit and I'm looking at a
waytosharethiswiththeTestLinkusercommunity.
Reply
Replies
IbaaHanbali February6,2013at3:08AM
HiAlpayErsoy
it seems you have solved most of the reported
problems.
Couldyoupleasesharethenewmacro.
Reply

AlpayErsoy February6,2013at5:47AM
IsthereawaytouploadthecompleteExcelworkbook?
Reply
Replies
AndreyVolovich April30,2013at7:35AM
Can u send Your changed version of XLS2XML
converter to me, please? Or give the link?
andrey.volovich@gmail.com
Thanks.

AndreyVolovich May1,2013at2:27AM
Worksgreat!
ThemainfeatureformeisthatYourmacroconvert
stepscorrectly.
Ithink,itisnecessaryforalltopostYourvariant.
Isearchedforitfor4daysandevencreatedasimple
programtoconvertcsv2xmlforTestLinkonPython.
But it was not so quick and comfortable as this
macro.
Thanksalot!
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

24/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

Yeah,Itsnewblog! February12,2013at6:30AM
Itriedtoupload.xlsfiletoTestlink.
StepswhileIfollowed:
1.LoggedintoTestlink
2.Wenttomyproject>>ClickonEditTestcases>>Clickedon
thedesiredtestsuite>>Clickon"ImportTestcase>>
3.ChangesXMLtoXLSfromthedropdownmenu
4.Chosen.xlsfilefrommycomputer
5.Clickedonupload
Butnothinghappened,myscreenwasjustblank.
Reply
Replies
Yeah,Itsnewblog! February12,2013at6:31AM
Anyhelpwillreallybeappreciated.
Thankyousomuchinadvance
Reply

AlpayErsoy February12,2013at6:50AM
The tool which has been described here is for generating an
XML file from Excel (XLS/XLSM). Make sure you run the
macro from Excel to generate the XML file and then you can
importitinTestLinkusingthefiletypeXML.Sendanemailto
me (gaersoygmailcom) your email address so that I can
providetheExcelworkbookwhichIhavemadeforgenerating
XMLfiles.
Reply

Anonymous February14,2013at11:34PM
Hello guys! i'm kinda new to testlink, i already know how to
import the test cases and test requirements using the macro
that gowri made. i modified some of the codes to add some
customfieldsintestrequirementswhichincludethestatusand
type. Now, my problem is that when i try to import the test
requirementsthestatusandtypedoesntshowinthetestlink.I
can'tfigureoutthecodeinmacrothatcanreadthedropdown
menu in test link which is status and type. Any help will be
muchappreciated.thanks!
Reply
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

25/40

22/10/2015

TestLinkImport:TestLinkImport

AndreyVolovich May1,2013at3:42AM
I added UTF8 support to Your macro, which allows to add
requirementsandtestcasesinRussian.
ItcanbeusefulformyRussiancolleagues:)
Take
it
here:
https://docs.google.com/file/d/0B4nt80DosU8YaUpWcWZja
WQxOW8/edit?usp=sharing
Reply

Gowri

May1,2013at7:14AM

ThanksAndreyandAlpay:)gladtoseetheworkIdidisbeing
madebetter:)
Reply

JiteshGodwe May9,2013at5:27AM
Helloall,
Can anyone tell me how to impport test cases from .xls to
testlink.
Reply
Replies
AndreyVolovich May10,2013at3:39AM
GotothelinkI'vepostedandusethemacro
Reply

AndreyVolovich May10,2013at3:36AM
TheAlpayErsoyversionofExcel2TestlinkXMLMacro:
https://docs.google.com/file/d/0B4nt80DosU8YTDg2dFVyW
VVrbDA/edit?usp=sharing
Thankstothisguy!Iusehisversionanditisverygood.
Reply
Replies
Gowri

May13,2013at1:05AM

Hi Andrey and Alpay. Thank you for sharing your


work on my blog. I'll provide the link to your
spreadshsstonmyblog.

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

26/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

Anonymous May15,2013at10:38AM
Willtherebeasupportfortheexecutiontypecolumnanytime
soon?
Reply
Replies
AlpayErsoy May15,2013at11:13AM
Setting the execution type of the test case (and
automatically setting the execution type of the test
steps)isinthepipelinelandwillbemadeavailable
togetherwithUTF8support.
Reply

Gowri

May15,2013at7:16PM

HiAlpay,
Thanksfortheresponse.
ToAnonymous(May15,2013at10:38AM),
if you are using my macro, it should be easy to include
execution type column in the excel sheet and make very few
changestothemacroforittowork.
Regards,
Gowri
Reply
Replies
Angela May17,2013at10:20AM
Canyouelaborateonthechanges?
Reply

Peter May15,2013at7:48PM
Thank you very much for sharing
"Excel2TestlinkXML"!.Itworksperfectly

the

tool

Reply

Peter May16,2013at1:28PM
IcreatesometestcasesinTestCaseOnlyTestSheetandgenerate
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

27/40

22/10/2015

TestLinkImport:TestLinkImport

XMLfile.ItalwaysgenerateTCsinGoodExampleTestCasOnly
sheet.Howtofixitplease?
Reply

AlpayErsoy May16,2013at2:30PM
Herearethesteps:
0. Open the Excel workbook, make sure you have macros
enabled.
1. Via the Instructions worksheet create an empty worksheet
(SheetX)usingoneofthebuttons("CreateNewTestCasesand
Requirements Sheet ..") or use the worksheet
GoodExampleTestCasesOnly.
2.Intheworksheetyouhavecreatedoryouareusing(SheetX)
specifyyourtestcasestakingintoaccounttherestrictions(see
theexamplesheets).
3. Once you are ready with specifying, select the Instructions
worksheet.
4.FillinthenameSheetXoftheSourceWorksheet(inthefileI
sentyou,itiscalledGoodExampleTestCasesOnly)
5.IntheInstructionsworksheetpressthe"GenerateXMLfiles"
button.
6. The Excel macro will generate the XML file at the location
wheretheExcelworkbookwas.Iftheguidelineshavenotbeen
followedyouwillgetreviewcommentsorpopupswarningyou.
7.InTestLinkviaTestSpecificationtab,youcanselecttheTest
SuitewhereyouwanttoimportthegeneratedXMLfile.
Reply

Angela May17,2013at10:18AM
Isitpossibletoaddcustomcolumns?
Reply
Replies
Gowri

May17,2013at6:51PM

Yesitispossibletoaddcustomfieldsasacolumn.
Reply

Angela May17,2013at11:35AM
I got this error: The input variable or file you are trying to
accessdoesn'texist.Stoppingthemacro.Wouldyoubeableto
givesomeideasastowhatthaterrormeans?
Anyhelpismuchappreciated!!
Reply
Replies

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

28/40

22/10/2015

TestLinkImport:TestLinkImport

Gowri

May17,2013at6:51PM

HiAngela,
Whichofthe3versionsofthemacroareyouusing?
Also,atwhatpointareyougettingthiserror?
Regards,
Gowri
Reply

Angela May21,2013at9:24AM
HiGowri,
We have a column for the execution type for each step and
another column called "Automated Test ID" for all the steps
thatthatareautomatedcorrespondingtotheindividualsteps.I
understandthatinthemacro,theexecutiontypeishardcoded
tomanual.CanyoupleaseprovidesomeinsightonhowIcan
make it work for the columns I discussed? I'm not very
advancedwithmacrocoding.
Thanksmuch,
Angela
Reply
Replies
Gowri

May21,2013at6:55PM

HiAngela,
Areyouusingthismacro?TheTestExecutionType
and Step Execution Type have been implemented
here.
The column names can be changed, but make sure
you change it in the macro as well. that is replace
"TESTEXECUTIONTYPE"and"STEPEXECUTION
TYPE"inthe'SelectCase'Block,withyourcolumn
nameinCAPITALLETTERS.
https://docs.google.com/file/d/0BzBCa6US6n8TV
0ZTLXlZa25vcUk/edit?usp=sharing
Regards,
Gowri
Reply

Angela May22,2013at7:27AM
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

29/40

22/10/2015

TestLinkImport:TestLinkImport

This is a bit off topic but I was wondering if anyone has had
trouble importing custom columns? I'm using TestLink v1.9.6
andIkeepgettingtheerrorthatmycolumnnameiswrong.I
tried putting the name of the custom field I created, the label,
andeventhedatabaseIDofthefieldinthecustomfieldstable.
Noneofitworked.
Reply
Replies
Angela May22,2013at7:28AM
BythewayIdidsearchtheforumsbutcouldn'tfind
ananswer.
Reply

AlpayErsoy May22,2013at8:35AM
InTestLinkexecuteanexportoftestcases/suiteinxmlformat.
Compare the exported file with the file which has been
generatedbyGowri'sExcelmacro.Thecustomfieldsshouldbe
thesame.
Reply
Replies
Angela May22,2013at1:18PM
ThanksAlpay!ItriedthatandIfoundthatthiswas
the error. The name of the field as saved in my
projectis"LabelTestCaseID"butithasabunchof
white spaces after it making 64 characters long as
"LabelTestCaseID".WhenItriedtoimportitwith
thewhitespaces,thewhitespacesgotremovedafter
theimportforsomereason.IfIopenmy.xmlfilein
the browser, I see the white spaces. After I try to
importthefile,thewhitespacesaregoneandIget
anerrorsayingthenamedoesn'tmatch.
I registered for a forum account, just waiting so I
canpostthere.

Angela May22,2013at1:19PM
Sorry by saying "just waiting so I can post there" I
mean waiting for the email to confirm my
registration.

Gowri

May22,2013at7:19PM

HiAngela,
It is because I could have used the TRIM function.
Or, you need to give the name of the custom field
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

30/40

22/10/2015

TestLinkImport:TestLinkImport

withthe64characterslengthintheexcelsheet.You
need to remove the TRIM function in the macro
(onlyforthisparticularfield)andalsomakesureto
havethewhitespacesinthecolumnname.
Regards,
Gowri

Gowri

May22,2013at7:21PM

Also, if you are able to see the whitespaces in the


browser, I am not sure how I could help :( as it
wouldbehowTestlinkimportworks.
Regards,
Gowri
Reply

Angela May28,2013at12:19PM
Thiscommenthasbeenremovedbytheauthor.
Reply

Angela May28,2013at12:34PM
HiGowri,
Using your macro, I found a bug in generating the XML with
morethanonecustomfieldfromthefollowingcodeblock:
'GettheTestcasescustomfieldsifany
The result is an extra tag (see below) in between the multiple
customfields.
custom_fields>
custom_field>
name>/name
value>/value
custom_fields
custom_field>
name>/name
value>/value
</custom_fields
Otherthanthat,themacroworksbeautifully!Thankssomuch
forprovidingit!
Reply
Replies
Gowri

May28,2013at7:04PM

HiAngela,
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

31/40

22/10/2015

TestLinkImport:TestLinkImport

Thanks for pointing it out :) As this was a work


doneinahurryforafriend,Ididnottestitasmuch
asIwouldlike.Iamdependingonpeoplewhoare
usingthemacrotoprovidemehelpfulfeedback,asI
myselfamnotusingit.
Thankyouforyourhelpagain!
Regards,
Gowri

Gowri

May28,2013at7:05PM

Also,I'lltrytogettofixingthisassoonasIcan!

SaayidRahim June3,2014at11:35PM
Angela,
Fortheextratagissuebetweencustomfieldsdoyou
haveafixformacro?Ifsoitwouldbereallygreatif
youcouldsharethesame...
ThankyouandGoodDay!
Saayid
Reply

Anonymous July3,2013at9:27PM
HiEveryone,
can u please help me out for import functionality through the
testlink.
Reply
Replies
Gowri

July7,2013at7:00PM

Hi,
Thestep by step instructions, with screenshots are
available above for testlink import. What more
detailsdoyouneed?
Regards,
Gowri
Reply

Anonymous July5,2013at10:49PM
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

32/40

22/10/2015

TestLinkImport:TestLinkImport

HiGowri,
I will appreciate your efforts in providing the information on
testlink.
I am new to the testlink,we recently started using Testlink in
our company, We are facing some problems while executing
the test cases as the testcase no's are not feature based.Could
youpleaseletmeknow
How can we make test case no's independent based on the
feature
Ex:
Feature1
TC1
TC2
TC3
Feature2
TC1
TC2
TC3
Isitpossible?
Thanks
Vijay
Reply
Replies
Gowri

July7,2013at6:59PM

HiVijay,
Ireallydon'tunderstandyourquestion.Pleasegive
moreinformationonwhatyouactuallyneed.
Regards,
Gowri
Reply

Bobby July13,2013at4:20AM
ItrytousertousetheyoursuggestionsinTestLink1.9.7,but
happen that in the test case import, the sections precondition
andstepsdon'tload,canyouhelpme?
Reply
Replies
AlpayErsoy July18,2013at2:05AM
AreyouusingGowri'sorAlpay'stool?
Reply

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

33/40

22/10/2015

TestLinkImport:TestLinkImport

Anonymous July17,2013at12:57PM
Alpay,LovetheExceltool.
IhadaquestionIamnotsureIhaveseeninthethread.Itend
to use multiple layers of Test Suites to break up test cases in
differentsections.Doesthetoolsupportameanstodomultiple
layersofTestSuites?
Example:
TestSuiteArea1.0
TestSubSuiteArea1.1
TestSection1.1.1
followedbytestcases
TC1
TC2
TC3
I figure if the tool does not support this option I may have an
import area in Test Link then move the test cases to the
appropriatetestsectioncreatedmanually.
Thanksagainforthetool:)
Charles
Reply

AlpayErsoy July18,2013at2:02AM
Charles,thanksforthepositiveremarks.:)
ThetooldoesnotsupportmultiplelayersofTestSuites.Youcan
use different subtest suites and once you have imported the
xml, move them manually to the correct suite. Support for
multiplelayersisnotintheroadmapeither.
Reply
Replies
SaayidRahim June3,2014at11:31PM
HelloAlpay,
IamintheprocessofexploringTestlinkandihave
usedyourtool.Thanksforsharingthesameandfor
automating and making the import process simple.
If it is possible could you share the workbook
password /macro script at saayid21@gmail.com so
thatwecantweakitslighltyforourinternaluse?
Thanksagainandappreciateforsharingthetool!
Haveanexcellentday..!
Saayid
Reply

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

34/40

22/10/2015

TestLinkImport:TestLinkImport

Anonymous July18,2013at7:03AM
ThanksfortheReplyAlpay,
IhavebeenusingTestlink1.9.7anditappearsIcanimportat
thelowerlevelsuites.
TheonlythingIfoundisIdontneedtocreatetheLastSubsuite
nameExample"1.1.1"
Becauseifthatisthenameofyoursuiteinthetoolthenitwill
createthatsuitenamebelowthelevelyouimport.
ThusIendedupwith
1.1.1
1.1.1
So I just moved them but I suspect that I could have just no
created the last suite name (1.1.1) by hand and let the import
processcreateitforme.
JustpassingonwhatIfound:)
Thanks:)
Charles
Reply

Anonymous July30,2013at12:28PM
Alpay,
New question: My test team is hoping to modify the
Requirementfield"Status"to"TestMethod".
Inoticedthemacroispasswordprotected.IsthereawayIcan
getthepasswordtomodifythemacrotoadjustthefieldorifwe
couldgetacopyoftheMacroscriptsowecouldmodifyit.
Any help would be great. I can provide you with my email
addressifneeded.
Thanks:)
Charles
Reply
Replies
Gowri

July30,2013at10:20PM

You can do it in the macro. It is NOT password


protected.Iamnotsurewhyafewpeoplearebeing
askedforpasswordsasIhavesetittoPublic.Butit
the older version. Please get the latest excel
spreadsheetwithmacrofromhere.
http://testlink
import.blogspot.sg/2013_07_01_archive.html
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

35/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

AlpayErsoy July30,2013at10:45PM
Charles: The Requirement Status field is a fixed field of
Testlink.Ifyouchangeitasproposed,youwillnotbeabletot
import the generated xml in TestLink. You can test this by
adaptingthegeneratedxml.DoesTestlinkalsosupportcustom
fieldsinRequirements?
Gowri:Ihavepasswordprotectedmymacros,justtomakesure
Idonoghavetotgivesupportformodifiedcode.
Reply
Replies
Gowri

July30,2013at10:54PM

HiAlpay,
Sorry, I didn't notice that the question was
addressedtoyou:)
I think it is possible to change the name of the
Status field in Testlink (in enGB I guess). But I am
notsureiftheoriginalposterhasdonethisalready!
And, import still can work as it will still populate
under status tag as the XML tags itself are
hardcoded in the macro. We just need to include
Case"TestMethod"alongwithCase"Status"
Regards,
Gowri
Reply

Anonymous July31,2013at5:13AM
Yeah we were considering modifying the PHP code to change
the field in TestLink also. But I understand it may affect the
import process. I will do some testing and see if we should
leaveitsettoStatusbutifwecanmodifythefieldtoallowfora
different set of fixed values that can be imported. Such as
"Inspection" or "Analysis". All of our requirements are
considered "Implemented" already since our requirements are
providedtousbyourclient.
IfwecanjustchangethetitleofthefieldinTestLinkandleave
thenodesetto"Status"forXMLbutallowforadifferentsetof
datavaluesIthinkweshouldbegood.
Thanksforthequickreply.
Charles

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

36/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

Anonymous July31,2013at5:59AM
Gowri,
Part of your response reminded me of a question. I have been
settingusersmanuallytoEnglishUSbutisthereawaytoset
the default English use? Not sure if it matters too much. I
suspectonlyafewfielditemsaredifferentfromEnglishGBand
EnglishUS.
We can check out changing the naming of the field using the
"Internationalization"forthefield.Istillneedtofigureouthow
tomodifythedatathatcanbestoredinthefieldtoincludenew
items. Or is it possible with naming fields to change the data
stored for "Status" from items like "Draft" to something like
"Inspection"?
Charles
Reply
Replies
Gowri

August6,2013at8:01AM

HiCharles,
Youshouldbeabletosetdefaultlanguageintestlink
in config.inc.php. The parameter to set is $
g_default_language. The original import will work
fine even if you change the name of the field in
locale.
Reply

NitikaSatija February4,2014at3:19AM
hi,
plz tell me what settings i hve to so if need custom fields to
appearhorizontally??and
whenweusemorethanonecustomfieldthanwearenoableto
importthetestcase?plztellthesolution.
Reply
Replies
Gowri

July23,2014at1:19AM

JustaddcolumnswithCustomfieldnameasheader
Reply

SaayidRahim June2,2014at2:58AM
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

37/40

22/10/2015

TestLinkImport:TestLinkImport

HelloAll,
Gowri.. thanks for the excel macro.. works well.. was
wondering how i can add extra custom fields to the
requirements/TestSuite/Casetemplates???
Anyonewhohasananswerforthesameoranyhelponwhat
needstobetweekedwouldbereallyhelpful!
Thankyouall!Forum'shighlyinformativeandreallyhelpful!
Reply
Replies
Gowri

July23,2014at1:19AM

JustaddcolumnswithCustomfieldnameasheader
Reply

NaviSamra July11,2014at6:40AM
HelloSir/Ma'm
Iwouldliketoknow,canweassigntheissuesfromoneproject
toother.
Thanks
Reply
Replies
Gowri

July23,2014at1:18AM

Nope,thisisnotpossibleinTestlink.
Reply

VishalBendre July23,2014at1:01AM
Hi,
I am converting .xlsx file to .xml and then trying to import it
intotestlink.IamgettingerrorLoad_xml_ko
Please,helpinthis.
Iwantedtoimport.xlsxfilestothetestlink
Reply
Replies
Gowri

July23,2014at1:18AM

If you used my macro to convert the xlsx to xml,


pleasemakesureyoucanopenthexmlfilewithIE
andviewit.
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

38/40

22/10/2015

TestLinkImport:TestLinkImport

Reply

Anonymous September3,2014at2:33AM
IhaveincreasedthesizeofTestcasenamebutwhenIimportit
using xml file, testcase name is getting truncated after 100
characters..Anyhelpinthis???
Reply
Replies
Gowri

September3,2014at7:39PM

I think you have to increase the test case name in


config file as well. Don't remember the exact
variablename.But,shouldbeeasyenoughtofigure
out, if you take a look. Might also need to increase
thelengthofthedatabasecolumn.
Reply

Max March20,2015at7:38AM
Hi Gowri, do you know any method to export/import
attachment in Requirements ? I tried to export some
requirementwithattachmentinXMLbuttheresultingstructure
doesn'tcontainnayusefullinktotheattacheddoc.
TIA
Massimo
Reply

Unknown April7,2015at2:33AM
Hiall,Iwouldliketointegratesomedatatestsfromxlsfileto
testlink(dataresultscheck).IgotonelinebyresultsonmyXLS
file,andiwouldliketointegratethemintothesametestcase.
Isitpossible?
Reply

Anonymous April8,2015at5:56AM
Hiall,
In our company, most of the projects have 90% same
requirements means 90% of test suit / test case execution is
same
Is it possible to share / use same test suit / test cases in
differentprojects?
ordoweneedtocreatedifferentsetoftestsuits/testcasesfor
eachproject?(duplicatetestsuits/testcases)
http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

39/40

22/10/2015

TestLinkImport:TestLinkImport

Thanksinadvance
S
Reply

RANJITHKUMAR April15,2015at10:50PM
HelloEveryOne,
Please let me know where the testcasess and Test plan are
storinginthebitnamitestlink,Iwouldliketotakethebackup
ofbitnamiTestcases
Reply

Enteryourcomment...

Commentas:

Publish

GoogleAccount

Preview

NewerPost

Home

Subscribeto:PostComments(Atom)

http://testlinkimport.blogspot.com/2009/11/testlinkimport.html

40/40

Você também pode gostar