Test Link - Import_ Test Link - Import

Embed Size (px)

DESCRIPTION

Importar xml a sistema de control de calidad de software testlink

Citation preview

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    T H U R S D A Y , N O V E M B E R 1 2 , 2 0 0 9

    TestLinkImport

    Update:13August2012

    HiAll,

    SorrytotheguysaskingmehelponTestlink1.9.x:(IhavestoppedworkingnowanddonothaveaccesstoTestLinkServer.But,inanycase,doletmeknowifanybodyhasademoserverforthelatestTestLinkversionoratleasttheXMLversionofRequirementsandTestCasesexportedfromTestLink.

    ThanksandRegards,Gowri

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

    Thankstothosewhohelpedotherreadersovercometheirissueswiththismacro.Iamnowgoingtoworkontroubleshootingtipsandalsoupgradingthismacro.So,pleasekeepfollowingthisblogandgothroughthecomments(therearesomanyhelpfulcomments)ifyouhaveanyissueswiththismacro.

    Thanks.****************

    Ihavecreatedanexceltemplatewithmacrotogeneratexmlforimportingrequirements/testcases/testsuitestotestlink.Thismacrowillgeneratetwoxmlfilesoneforrequirement(excelsheetname_Req.xml)andoenfortestcases(excelsheetname_Tc.xml)

    LinktoExcelSheet:http://spreadsheets.google.com/ccc?key=0AjBCa6US6n8TdDF1Zk1hNGd1MGtHYnJhSVhTVUxoZFE&hl=en

    F O L L O W E R S

    JointhissitewithGoogleFriendConnect

    Members(14)

    Alreadyamember?Signin

    B L O G A R C H I V E

    2013(2)

    2009(1)November(1)

    TestLinkImport

    A B O U T M E

    GOWRI

    VIEW MY COMPLETE PROFILE

    0 Ms Siguienteblog Crearunblog Acceder

    T E S T L I N K I M POR T

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Linktomacro:(Savedas.txt.Pleaseopenthevbaeditorinexcel,copypastethetextandsave)http://docs.google.com/Doc?docid=0ATBCa6US6n8TZGRodmh3Y2hfM2N4dmZrYmc1&hl=en

    Importssupportedareasfollows:(ThetableshouldstartfromRow1,Column1asgiven)

    ImportRequirements:TheExcelformattobeusedisgivenbelow.SpecTitle:TheRequirementSpecificationTitle(Thiscanbeleftempty,sincethisisonlyformappingrequirementswithtestcases.But,thiscolumnmustbepresent.)DocumentID:Thisistheuniquerequirementreferencenumber.(Mustbeuniquewhenimportingrequirements.But,whenimportingtestcasesortestsuiteswithrequirements,multipletestcasescanbemappedwithsinglerequirement.Formoredetails,pleaseseeotherimportformatsbelow.ReqTitle:Thisisthetitleoftherequirement.Thisisalsounique.EachDocumentIDismappedwithaReqTitle.Description:Thisisthedetaileddescription(Scope)oftherequirement.

    ImportTestCases:TheExcelformattobeusedisgivenbelow.TC#:ThisistheTestCaseSerialNumber.Itshouldstartfrom1andbeinsequence.Thisisalsounique(evenacrosstestsuites).Name:ThisistheTestCaseName.Thisisalsouniqueforatestcase.Summary:ThisistheTestSummary,abriefabouttheTestScenario.Steps:Thissectionisforwritingthestepsforexecutionofthetestcase.ExpectedResults:Thisistheresultsexpectedonexecutingthetestcase.

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    ImportTestSuiteswithTestCases:TheExcelformattobeusedisgivenbelow.Name:NameoftheTestSuite.TestCasesmustbegroupedundereachTestSuiteexactlyasgivenbelow.Thisisunique.Details:DetailsabouttheTestSuite.

    ImportTestCaseswithRequirements:TheExcelformattobeusedisgivenbelow.

    ImportTestCaseswithCustomfields:TheExcelformattobeusedisgivenbelow.

    ImportTestCaseswithCustomFieldsandRequirements:Theexcelformattobeusedisgivenbelow.

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    ImportTestSuitewithrequirements:Theexcelformattobeusedisgivenbelow.

    ImportTestSuitewithTestCaseshavingCustomFields:Theexcelformattobeusedisgivenbelow.

    ImportTestSuitewithCustomFieldsandRequirements:TheExcelformattobeusedisgivenbelow.

    Feelfreetouseitandletmeknowyourcomments.

    POSTED BY GOWRI AT 8:58 PM LABELS: IMPORT, REQU IREMENTS, TEST, TESTLINK

    1 63 COMMENTS :

    rahul December3,2009at3:07PM

    Thiscommenthasbeenremovedbytheauthor.

    Reply

    rahul December3,2009at3:13PM

    Higowri,

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Thank you for posting info on testlink. I am working onimportingtestcaseswithcustomfieldstotestlink.Ihaveusedthe macro in my excel sheet but i dont see xml filegenerated.canyoupleasehelpmeinmovingforwardbygivingsome info on generating xml file and importing to xml.Alsopleaseshareifyouhavesomedocument.

    Thanksinadvanceforyourhelp,Regards,

    Reply

    rahul December3,2009at3:40PM

    HiGowri,

    Ifoundwherexmlgettingstored.canyoupleaseletmeknowifitispossibletoimportrequirementswithcustomfieldsjustlikeimportingtestcaseswithcustomfields.

    Regards,

    Reply

    bharathi December4,2009at2:15AM

    Hi,

    IamusingthisscriptfortestsuiteuploadingandeditedtheXLsheetasperthis.I am getting some compile error while running this macro.couldyouhelpme.

    ThanksBharathi

    Reply

    rahul December7,2009at7:17PM

    Followingarethestepsifollowed,

    a)CopythemacroandpasteinurVBAeditorb)ThensavethefileasMacroenabledexcelworkbook.Thentryrunningmacro.

    Hopethishelps...

    Reply

    David,Kacey,&ChanChan June4,2014at12:58PM

    Iamalsogettingasyntaxerroronthelastfunction.I copied and pasted directly into the VBA projectworkbook.Itisonthe"FunctionlastColumn..."and"lastColumn=..."lines.Anyhelporadvice?

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Nelson December10,2009at7:11AM

    HiGowri,

    Greattool!!

    WhatifIwanttoassociatekeywordstomysuite/testcase?CanIaddanadditionalcolumn?

    Thanks!Nelson

    Reply

    Gowri December14,2009at5:39PM

    HiRahul,

    TestLinkdoesnotsupportimportingrequirementswithcustomfields.Onlyimportingcustomfieldsfortestcasesissupported.

    Regards,Gowri

    Reply

    Gowri December14,2009at5:40PM

    HiBharathi,

    I canhelp you if you canpost details about the error you aregetting.

    Regards,Gowri

    Reply

    Gowri December14,2009at5:45PM

    HiNelson,

    Weneedtoaddanewcolumnandalsomakecodechangesinthemacro for importing test caseswithkeywords. Itbecomestroublesomeifyouneedto import testcaseswithmorethan1keyword.Fornow,Icanworkon importing testcaseswithasinglekeyword.Pleasewaitformyupdateonthis:)

    Reply

    Anonymous December18,2009at6:34AM

    txalot!itsveryhelpfull

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    [email protected] January12,2010at8:58PM

    Canyoupleasetellmehowwhereisthexmlfilestored

    Reply

    Gowri January13,2010at1:28AM

    Thexmlfileisstoredinthesamelocationinwhichyourexcelfileisstored.TheXMLforimportingRequirementsisstoredas(your excel file name)_Req.xml and the XML for importingTestCasesisstoredas(yourexcelfilename)_Tc.xml.Hopethishelps!

    Reply

    Anonymous March25,2010at3:35PM

    HiGowri,

    When i am trying to import requirements they all are gettingloadedunderonefolder.Nowihaveenabletree(node)structureintestlink.Canyoupleaseletmeknowificanimportthereqsindifferentfolderwhenloading.

    ManyThanksTestlinkuser

    Reply

    KenH April1,2010at6:51PM

    HiGowri:

    Whatagreatpluginandtemplate,ithasnotonlybeengreatforimporting test cases, but has really helped me to get startedunderstandingTestLinkaswell.

    One defect I have found is that if the data in an Excel cellcontainsquotes("")thenthescriptwillnotcreateavalidfile.

    Looking forward to theenhancement thatwill allowmultiplekeywords, they are a large component of our TestLinkimplementation.

    Reply

    Gowri April1,2010at9:50PM

    @Anonymous,

    Wehavenotenabledthetreeviewforrequirements.So,Idon'tthinkIcanworkonthisfornow.

    @Ken,

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Thefileswillbecreatedifyourcellshavedoublequotes.Butifthe double quotes are special characters that look like openquotesandclosequotes(slantingtowardsoneside)unlikethestraightlookingdoublequotes,avalidfilewon'tbecreated.So,please replace those double quotes with ordinary ones using'Replace All' twice (one for open quotes and one for closequotes).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.WhenItrytoimportthexml,thereisthemessage"WrongXMLtestcasefile"Canyouhelp?

    Thankyou

    Reply

    Gowri July26,2010at12:22AM

    HiMedAtefandAnonymouswith"WrongXMLtestcasefile"error.PleasecheckthatyourxmlfileopensproperlyonInternetExplorer. Also make sure to choose Test Suite or Test Caseimportappropriately!DoletmeknowtheresultssothatIcanhelpyoufurther!

    Reply

    Ann August3,2010at5:38AM

    HiGowri,

    thanks for your help. The xml file didnt open on InternetExplorerwiththemessagethatthereisawrongcharacter.SoIchecked my testcases and the problem were the german"Umlaute"like,,etc.Nowthemacroworkscorrectly.

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Thankyou!Greetings,Ann(Anonymous)

    Reply

    Deepak October11,2010at5:42AM

    Hi,

    IwanttoexportmytestcaseswritteninExceltotestlinkItriedtheaboveproceduresbyusingmacros.Butnoluck.Iwasabletogeneratethexml.But iwasunabletouploadthesametotestlinkduetobelowerrormessage:"wroungxmltestcasefile."Itwillbeverygreatfullifanyonecanhelpmkeinthisregards.

    Reply

    Anonymous October27,2010at12:36AM

    Hi,Gowri,Iusedtestlink19.beta3.IfoundthatimportXMLResultdisplayitissuccess,butthedatadon'tupdateinthedb.

    ImportTestCasedata:TestCase15version1Tester:lykResult:passedExecutionTimestamp:'2010102715:34:54'Imported!TheDBnotupdated.Doyouknowwhy?Thankyou!

    Reply

    Anonymous November12,2010at5:46AM

    HiGowri,

    Thankyousomuchforyourtemplateandmacro!Itisworkinggreat,itishelpingmealotwithmyworkwithTestlink.

    Reply

    Anonymous December30,2010at12:38AM

    Hello,

    Didyoumadeanupdatefortestlink1.9(Prague)version?

    Reply

    Sue January18,2011at8:45AM

    Greattool,justsavedmeatonoftime!Thereisasimplewaytoupdatethisscriptfortestlink1.9,butitwillonlyimportthestepasonestepandexpectedresult.asperthislink:http://www.teamst.org/forum/viewtopic.php?f=11&t=3287&start=0youcandoasearchandreplaceintheVBAcodewherethexmlisgeneratedfortheelement.Iverifiedthisworks.Iamgoingto

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    see if I can enhance this vba code to allow formultiple stepimport.IwillpostthecodeifIgetittowork.Notewearenotplanning to import requirements, so I'm not sure if there arechangestoxmlthereaswell.

    Reply

    JoshEbel November19,2012at2:46PM

    Thiscommenthasbeenremovedbytheauthor.

    JoshEbel November19,2012at2:49PM

    HerearethechangesImadefromtheposttogettheMacroimportingtoTestLink1.9.3withsteps.

    http://pastebin.com/wapuG1fC

    Thanks,

    Josh

    Unknown December10,2012at8:49AM

    HiJosh,

    Itriedtouseyourmacrobutitimportedeachstepasaseparatecase.Could you upload a sample sheet for us to see thelayout.

    Anonymous February10,2011at3:38PM

    Howtogetletsay8stepsand8expectedresultspertestcase,Ican'tfigureout.Ifthemacroneedtobechange,canwesethechangetobemade?Thanks

    Reply

    Anonymous February11,2011at12:57PM

    Sue, did you get success with changin the VBA code for themultiplestepimportfor1.9?Ifyes,whereisitposted?

    Reply

    Anonymous March3,2011at7:00AM

    HiGowri,

    Greattoolandsosimpletouse!Workedlikeacharmtheveryfirst time. For importing testcases with steps in TL 1.9, the

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    macrohastobeslightlychangedReplacewith""andvoila!

    OnequestionthoughHowdoIimportTestresultsandNotes?ItriedaddingthetagsbblockierttotheXMLbutitsnotgettingimported.

    Anysuggestions?

    Tx,Sands

    Reply

    Gowri August13,2012at6:58AM

    HiSands,

    Ihavenotused import function for the test results.But,youcanexportatestcasethatalreadyhastheTestResult, lookat theXMLandmakechanges tothemacroaccordingly.

    Anonymous April25,2011at9:43PM

    Doesanyonehavethelatestmacrowhichcanbeusedtoimporttest cases with multiple steps? Highly appreciate if they cansharethemacrocodehere.Thanks!

    Reply

    Anonymous November21,2011at2:26AM

    Anysuggestionsconsideringtheumlautproblem?Asagermanuser, i cant import requirementsor testcases toTLbecauseofthisproblem.

    Reply

    Anonymous November22,2011at5:52AM

    Hi,Ihaveadifferentproblemregardingrequirements import:OurrequirementsweresuccessfullyimportedandshowcorrectUmlauts, however if we SEARCH requirements (by scope) itwon'tfindanythingwithanUmlautunlesswe"escape"themtohtmlentities in the search entry field, e.g. instead of"bersetzung"wiemusttype"bersetzung"...anytrickheretohavetestlinkdothisforusautomatically?

    Reply

    Gowri November22,2011at6:30AM

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    @AnonymousNovember 22, please check if details thisURLcansolveyourproblem.

    http://www.daniweb.com/webdevelopment/php/threads/232363

    Also, ifyoucanexplainhereforAnonymousNovember21onhowyoudealtwithumlauts,itwouldofhelptosomepeople.IguessithassomethingtodowithsettingencodingtoUnicodein the XML generated. But I am not sure how. Please sharehereifyouareaware.Thanks.

    Reply

    Gowri November22,2011at6:37AM

    @Anonymous April 25, multiple steps can be inserted bykeepingallthestepsinthesamecellandusingXMLlisttags.(I have removed angle brackets on both ends of line. Plsincludeit)

    Eg:ol>li>step1step2

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Anonymous December22,2011at1:12AM

    Hi,

    I'musingTestlink1.9.3Version. i'mable import thecasesviaXML..Butnotabletoimportviaxls..infact,i'vetriedusingthistemplateaswell..butnoluck..

    formexml isnotgettinggenerated.. i think, theresomethingwrong i'm doing it.. not able to debug.. i've followed exactlysamestepsbut..nothingheppens..anyhelppls..

    Reply

    Anonymous December22,2011at1:15AM

    Cananyone.provideexactsteps..whichneedtofollowtousethistemplate.

    Reply

    Gowri December22,2011at1:47AM

    @AnonymousDec22,2011:youCANNOTupload(import)theexcel directly in testlink. You need to use the macro andgeneratetheXMLusingtheexcelwiththestepsEXACTLYasmentionedintheblog.

    Reply

    Anonymous December22,2011at2:09AM

    Thanks for the info so quickly. i really appreciate .. atleast iwasnotawareof..but,thereisanoptiontoimportXLSTL.

    another point.. how to generate the xml file.. after puttingmacroinVBA,andsavingasmicroenabledfile..whatneedstobedone..?

    Reply

    Anonymous December22,2011at10:33PM

    Kindly help for how to generate xml from xls.. very urgentlyneeded..igotstuckup..

    Reply

    Gowri December22,2011at11:18PM

    Youneedtorunthemacrofromtheexcelsheet.Itwillgenerate2XMLfiles.Oneforrequirementsandonefortestcases.

    Reply

    Anonymous December22,2011at11:26PM

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Afterrunningthemacro,gettingCompileerror....syntaxerror@"IfreqColCount0Then"

    whatisthesolutionforthis..?

    Reply

    Gowri December23,2011at7:00PM

    Lookslikeyoudon'thaveanyrequirementstoimportfromtheexcelsheet,butstillhavetherequirementscolumnintheexcel.You need to read and understand the steps without blindlyfollowingthem.

    Reply

    Anonymous May10,2012at12:27AM

    HiGowri

    Greetings!!!!

    stillwearehavingissuesinimportingthetestcasesin testlink 1.9.3. Could youplease help uswith anexcel sheet where we can write the testcases andgenerate XML and upload it to testlink. We areusingversion1.9.3sreeram.krishnaattttgmaildotcom

    Anonymous December29,2011at5:25PM

    Havetoreplacethe""with"",etctosolvesyntaxerrors.

    Also, have to set the options in Excel2010 to "Devmode" byFile>Options>CustomRibbon>checkboxDeveloper.

    ItthenWorksGreat!Greatjob!Muchappreciated!

    Reply

    Anonymous January5,2012at9:15AM

    Hi,

    EverythingisworkingperfectbutIamnotabletoimportstepsandexpectedresultbyxmlgeneratedfrommicro.canyoupleasehelpmeout?

    Thanksinadvance.Raj

    Reply

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Anonymous January11,2012at12:17PM

    ToRaj,InTestlinkManuallycreateatestcasewithstepsinit.ThenexportthattoXML.InspecttheXMLyouwillfindthatyouneedtomodifytheCaseStatementfor"Step".

    Reply

    Anonymous May10,2012at3:04AM

    Hiraj,

    Wearestillfacingthesameissuein1.9.3Stepsarenotgettingimported.Couldyoupleasehelpusonthis

    sreeramdotkrishnaatgmail.com

    Reply

    Rhea July3,2012at11:33PM

    Hi,

    Iamfacingsomeissuewhileimportingxlsfile.It displays an error "The filename C:\wamp\www\testlink1.9.0\testlink1.9.0\gui\templates_c\ub7qqr6qtq87v3h2t5hpderkg3importtcs.xls isnot readable"CouldyouPleaseHelpmewiththisissueandletmeknowASAP

    Reply

    SushmithaSivan July19,2012at9:48AM

    Sameissue..notabletoimportstepsandexpectedresultsusingxmlfile.Muchappreciatedifyoucouldhelp.

    Sushmitha

    Reply

    Anonymous August13,2012at4:11AM

    HowcanIupdatemytestcasewithchangingitstestcaseIDandwithout updating one by one as I need to update almost100hundredtestcasesbeforeexecution.

    Reply

    Anonymous August13,2012at4:32AM

    I am using TestLink 1.9.3. How can I update my test casewithoutchangingitstestcaseIDandwithoutupdatingonebyoneas Ineed toupdatealmost 100hundred test casesbeforeexecution.

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    Reply

    Reply

    Gowri August13,2012at6:38AM

    Hi,To update already existing test cases on testlink,followthestepsbelow:1.Export thetestcasestobeupdated, fromtestlinkinXMLformat.2.OpenthegeneratedXMLfileinMicrosoftExcel.3.MaketherequiredchangestotheXMLfileusingMicrosoftExcel.4.SavethefileinXMLformat.5. Upload this file in testlink using the importfunctionasusual.

    LisaK August23,2012at7:54PM

    Hi,Managed to get the xml generated for a single test casewithmultiple steps. However, when I import, the steps are notimportedthetestcaseisappearingonthetreewithsummary.I tried to import only a single test case with multiple steps(usingthelisttagassuggestedinonecomment)andusedtheimport from the Test Case level. Can you please help inidentifyingtheissue?

    Reply

    Gowri August23,2012at9:35PM

    Hi,

    Thelisttagworksonlyfortestlink1.8.xandnotfor1.9.xas thedatabasehaschanged.Youcanexportone testcasewithmultiplesteps.Lookat theXMLandchangethemacroaccordingly.

    DigvijayBisht August31,2012at4:06AM

    Can you please send me the macro to upload requirementspecification to testlink along with the main suite and subsuite.MyEmailidid:[email protected].

    ThanksDigvijay

    Reply

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    Gowri September12,2012at5:45PM

    Ihavesharedthemacrotohelpyou.Itisuptoyoutomodify it according to your own requirements.Pleaserefrainfrompostingsuchrequests!

    Anonymous September5,2012at11:21AM

    HiGowri,

    SeemstobepeopleareusingdifferentversionsofTestlink1.8.xOR 1.9.x, different Excel 972003 OR 2010. And that iscausingconfusionamongpeople.Fewthingsworkingforsomepeople&fewnot.If you could write a general comment from architectperspective,itwouldhelpall.By architect perspective I mean, how testlink behavesdifferently in case of 1.8.x& 1.9.x at the same time forExcel2003,2007&2010.

    Also I would appreciate, if you could also mention how togenerate/write thismacro code depending upon requirementswhatpeoplewanttoimportfromExcel>XML>Testlink.

    Thanks,Ravi

    Reply

    Gowri September12,2012at6:08PM

    HiRavi,

    Thanks for your comment. But I hope youunderstand that it is NOT my job to find out thedifferencebetwwendifferent testlink/excel versionsandexplainittopeople.

    I amonly sharingmywork so itwill behelpful tosomepeople.Then,itisuptoyoutounderstandwhatitisdoing(IhaveprovidedasmuchcommentsIcaninthemacro).

    Youarefreetousemymacro,modifyit.YOUhavetoputinthat'littleeffort'tounderstandthemacroandmakeitworkforyou.

    Also, I would appreciate, if you can share yourfindings,IFyouputinthatextraeffort...

    Regards,Gowri

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    Reply

    Replies

    RayZhang September12,2012at9:12AM

    Ididthefollowing:1.OpenthetemplatewithExcel2012.2.EnableDevelopertab.3.OpenVBeditorViewCode4.PastetheMacrotext.5.Saveitas"ExcelMacroEnabletemplate(*.xltm)"6.Openthexltmfile.7.Run"Sheet2.genRegnTcArr"Macrofile.8.AndThenget"400"error.

    Wouldyoupleasehelptofigureouttheissue?

    Thankyouverymuch.

    Reply

    Gowri September12,2012at5:58PM

    HiRayZhang,

    Willyoubeabletoshareyourexcel?(youdon'tneedtohaveanydatainit)

    Regards,Gowri

    Margotsevignymartin September13,2012at8:49AM

    the imported test casesdonothave steps is there anupdatedversionthatsuppliesthis?

    Reply

    Gowri September13,2012at5:52PM

    HiMargot,

    ThismacrowillworkonlyforTestlinkversion1.8.x.For version 1.9.x you need tomodify themacro asthe XML has changed because of Testlink DBchange in 1.9.x. You can read through thecomments for some guidance on modifying themacro,asIdon'thaveaccesstoTestlink1.9.xrightnow.Sorryfornotbeingtoabletohelp.

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    Reply

    Anonymous September17,2012at7:14AM

    I'm also using the TestLink version 1.9.4. Everything worksgreatwith themacro,but I stillhave theproblem togeneratestepsandtheexpectedresults.Doesanybodyhaveasolution,whichcanbeexplainedindetail?Thanksalot...

    Reply

    Anonymous September18,2012at1:08AM

    Hieverybody,hereisagainthe"Anonymous"fromSeptember17,2012.Thereis another question I've forgot yesterday: What is with thepreconditionsyoucanaddtothetestcasesinTestLink1.9.4?IstherealsoanopportunitytowritethepreconditionsintheexcelsheetandimportthemtogetherwiththeotherinformationsinTestLink?Iwouldbeverygratefulforhelp!

    Reply

    siva September26,2012at12:29AM

    HiGowri,when I run themacro am getting compile error as "ExpectedEndSub".Couldyoupleasehelponthis.Ihaveusedthesameexcelfileasyoushownabovein"ImportTestCase"

    Thanks,Siva

    Reply

    Gowri September26,2012at3:06AM

    Take a look at your macro. For every 'Sub' thereMUSTbean'EndSub'

    Siva September27,2012at11:06PM

    Hi,NowIcanrunthemacroquerywithouterrorbutXMLfilenotgenerated.

    Pleasehelp,Regards,

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    Reply

    Replies

    Reply

    SivaReply

    Gowri September28,2012at3:19AM

    I canhelp youwith this only if you share your xlswithme.Without it, I really can'tmakeoutwhat'swrong...

    Elissa October5,2012at11:23AM

    Iget:Thewebpageat ...mightbetemporarilydownoritmayhavemovedpermanentlytoanewwebaddress.

    Arethedocup?pls,couldgivemeotherlinks?

    DoesthemacroworkforTestLink1.9.4?

    Reply

    Gowri October5,2012at10:25PM

    HiElissa,

    Ihavecheckedthe linkstobeworkingfine.Pleasetry again. Themacroworks for 1.8.x. You need tomodifythemacrotomakeitworkfor1.9.x.

    Regards,Gowri

    Anonymous October19,2012at10:46PM

    Canyoupastethechangesneededtomakethemacroworkfor1.9Ihavebeenbangingmyheadtryingtofigurethisoutforthelasttwohours.

    Reply

    Gowri November8,2012at2:54AM

    Sorry asmentioned above, I do not have access toTestlink1.9.x.

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Anonymous November7,2012at11:31PM

    Iwaswonderingifyoucouldimportthetestcaseswithalinktoarequirementittests?Soyoudon'thavetodothelinkinginsidetestlinkonebyonewithamouse...

    Reply

    Gowri November8,2012at3:04AM

    Yesyoucan.Please refer to 'Import test caseswithrequirements'sectionabove.

    nmskarthik November20,2012at1:55AM

    IamnewtoTestlink.Ihaveaddedonlyonetestsuiteandonetest case under that and try to umport to Testlink. Getting"WrongXMLtestcasefile".Couldsomeonehelpmetoresolvetheissue.

    Note:Iamabletoopenthexmlfileinexplorer.

    Reply

    Anonymous November27,2012at2:31PM

    ThanksalotfortheMacro.

    Ihaveissuesinimportingthedataofthecustomfields.

    IamusingTestLinkversion1.9.3.Ihavetwocustomfieldsinmyexcel.Whileimporting,Iseenoerrormessagethrowingoutin Test Link. But when I look into the .xml file, I see thatinstead of reading one cell of the custom field, the wholecomplete columns are read and then it is moved to the nextcustomfielddatafirstrow.Fromthereitreadsagainthewholecolumnsofthesecondcustomfielddata.

    Iwantthecustomfielddatatobereadbypertestcase.Butthisisnothappening.IamnewtoTestLinkandtotheVBscript.Couldanybodypleasehelpmeoutonthis?

    Reply

    Anonymous December12,2012at12:24PM

    HiGowri,

    Thanks for all your efforts to bring all under one roof. iwasusing 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

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Macro.Yourhelpisneeded.

    ThanksSridarr

    Reply

    Gowri December12,2012at9:38PM

    HiSridarr,

    Youwon'tbeabletousethemacrofor1.9.xasitwaswritten for 1.8.x, as the database has undergonechangesbetweenthese2versions.

    Regards,Gowri

    Anonymous December12,2012at2:40PM

    HiGowri,

    AsperyourxmlconvertcodeandxlstemplateinTestLink1.9.3,i am not getting Steps and Expected results. can you pleasehelpmeonthis.

    ThanksMKT

    Reply

    Gowri December12,2012at9:39PM

    HiMKT,

    Youwon'tbeabletousethismacrofor1.9.xasitwasmeantfor1.9.x.

    Regards,Gowri

    Reply

    Anonymous December14,2012at3:21PM

    HiGowri,thanksforyourreply,ihavesomecustommademacrowhichiscurrentlycreatingXMLandusingwith1.9.3ver.ButitisveryuncertainwheniamimportingXMLfortestcaseswith requirement mapping sometime is the import is failingandnotsurewhy,ifjustaddfewtestcasesitworks,thenagiangivinganerrorasimportingFailed.

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    Reply

    Couldyoupleasetellmeifyouhaveanyothersolutionforthis.

    ThanksMKT

    Reply

    Gowri December14,2012at4:20PM

    HiMKT,

    IwillbeabletohelpyouifIcanseeyourexcelsheetalong with the macro. Otherwise, I can't knowwhat'swrong.

    Regards,Gowri

    Anonymous December14,2012at11:00PM

    Hi Gowri. thanks for your prompt reply. please find theattachedxlswithmacro.

    Reply

    Gowri December15,2012at2:12AM

    Hi,

    Pleaseletmeknowifthemodifiedmacroworksfine.By the way, please check the generated XML byopeningitinabrowser,beforeusingitforimport.

    Regards,Gowri

    SRIDARR December14,2012at11:03PM

    HiGowripleaseshareyouremailidtosendthesame

    ThanksMKT

    Reply

    AlpayErsoy December20,2012at4:19AM

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    HiGowriCan youplease share your email id. I have used the versionsyouhavepostedfromnearly2yearsagoandhaveaddedsomeenhancementsonthewaysuchas:AddingchecksandnotifyingusertocommonusermistakesintheinputExcelsheet:+Notnumberingtheexecution/expectedresultsteps.+Execution/ResultStepisnotnumericnorabullet.+Emptylinesinsteps.+Moreexpectedresultsthenactionsteps.+GeneratedXML filesize is larger than the size supportedbyTestLink.+ Sanity checks against common TestLink's import warningxml_load_koCharacterconversionforunsupportedcharactersThe codebasehas increasedquite a bit and I'm looking at awaytosharethiswiththeTestLinkusercommunity.

    Reply

    IbaaHanbali February6,2013at3:08AM

    HiAlpayErsoyit seems you have solved most of the reportedproblems.Couldyoupleasesharethenewmacro.

    AlpayErsoy February6,2013at5:47AM

    IsthereawaytouploadthecompleteExcelworkbook?

    Reply

    AndreyVolovich April30,2013at7:35AM

    Can u send Your changed version of XLS2XMLconverter to me, please? Or give the [email protected].

    AndreyVolovich May1,2013at2:27AM

    Worksgreat!ThemainfeatureformeisthatYourmacroconvertstepscorrectly.Ithink,itisnecessaryforalltopostYourvariant.Isearchedforitfor4daysandevencreatedasimpleprogramtoconvertcsv2xmlforTestLinkonPython.But it was not so quick and comfortable as thismacro.Thanksalot!

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    Reply

    Yeah,Itsnewblog! February12,2013at6:30AM

    Itriedtoupload.xlsfiletoTestlink.

    StepswhileIfollowed:

    1.LoggedintoTestlink2.Wenttomyproject>>ClickonEditTestcases>>Clickedonthedesiredtestsuite>>Clickon"ImportTestcase>>

    3.ChangesXMLtoXLSfromthedropdownmenu4.Chosen.xlsfilefrommycomputer5.Clickedonupload

    Butnothinghappened,myscreenwasjustblank.

    Reply

    Yeah,Itsnewblog! February12,2013at6:31AM

    Anyhelpwillreallybeappreciated.

    Thankyousomuchinadvance

    AlpayErsoy February12,2013at6:50AM

    The tool which has been described here is for generating anXML file from Excel (XLS/XLSM). Make sure you run themacro fromExcel to generate theXML file and then you canimportitinTestLinkusingthefiletypeXML.Sendanemailtome (gaersoygmailcom) your email address so that I canprovidetheExcelworkbookwhichIhavemadeforgeneratingXMLfiles.

    Reply

    Anonymous February14,2013at11:34PM

    Hello guys! i'mkindanew to testlink, i alreadyknowhow toimport the test cases and test requirements using the macrothat gowri made. i modified some of the codes to add somecustomfieldsintestrequirementswhichincludethestatusandtype. Now, my problem is that when i try to import the testrequirementsthestatusandtypedoesntshowinthetestlink.Ican'tfigureoutthecodeinmacrothatcanreadthedropdownmenu in test linkwhich is status and type. Any helpwill bemuchappreciated.thanks!

    Reply

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    AndreyVolovich May1,2013at3:42AM

    I added UTF8 support to Your macro, which allows to addrequirementsandtestcasesinRussian.

    ItcanbeusefulformyRussiancolleagues:)

    Take it here:https://docs.google.com/file/d/0B4nt80DosU8YaUpWcWZjaWQxOW8/edit?usp=sharing

    Reply

    Gowri May1,2013at7:14AM

    ThanksAndreyandAlpay:)gladtoseetheworkIdidisbeingmadebetter:)

    Reply

    JiteshGodwe May9,2013at5:27AM

    Helloall,

    Can anyone tell me how to impport test cases from .xls totestlink.

    Reply

    AndreyVolovich May10,2013at3:39AM

    GotothelinkI'vepostedandusethemacro

    AndreyVolovich May10,2013at3:36AM

    TheAlpayErsoyversionofExcel2TestlinkXMLMacro:

    https://docs.google.com/file/d/0B4nt80DosU8YTDg2dFVyWVVrbDA/edit?usp=sharing

    Thankstothisguy!Iusehisversionanditisverygood.

    Reply

    Gowri May13,2013at1:05AM

    HiAndrey andAlpay. Thank you for sharing yourwork on my blog. I'll provide the link to yourspreadshsstonmyblog.

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    Reply

    Replies

    Reply

    Anonymous May15,2013at10:38AM

    Will therebeasupportfortheexecutiontypecolumnanytimesoon?

    Reply

    AlpayErsoy May15,2013at11:13AM

    Setting the execution type of the test case (andautomatically setting the execution type of the teststeps)isinthepipelinelandwillbemadeavailabletogetherwithUTF8support.

    Gowri May15,2013at7:16PM

    HiAlpay,

    Thanksfortheresponse.

    ToAnonymous(May15,2013at10:38AM),if you are using my macro, it should be easy to includeexecution type column in the excel sheet andmake very fewchangestothemacroforittowork.

    Regards,Gowri

    Reply

    Angela May17,2013at10:20AM

    Canyouelaborateonthechanges?

    Peter May15,2013at7:48PM

    Thank you very much for sharing the tool"Excel2TestlinkXML"!.Itworksperfectly

    Reply

    Peter May16,2013at1:28PM

    IcreatesometestcasesinTestCaseOnlyTestSheetandgenerate

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    XMLfile.ItalwaysgenerateTCsinGoodExampleTestCasOnlysheet.Howtofixitplease?Reply

    AlpayErsoy May16,2013at2:30PM

    Herearethesteps:0. Open the Excel workbook, make sure you have macrosenabled.1. Via the Instructions worksheet create an empty worksheet(SheetX)usingoneofthebuttons("CreateNewTestCasesandRequirements Sheet ..") or use the worksheetGoodExampleTestCasesOnly.2.Intheworksheetyouhavecreatedoryouareusing(SheetX)specifyyourtestcasestakingintoaccounttherestrictions(seetheexamplesheets).3.Once you are readywith specifying, select the Instructionsworksheet.4.FillinthenameSheetXoftheSourceWorksheet(inthefileIsentyou,itiscalledGoodExampleTestCasesOnly)5.IntheInstructionsworksheetpressthe"GenerateXMLfiles"button.6.TheExcelmacrowillgenerate theXMLfileat the locationwheretheExcelworkbookwas.Iftheguidelineshavenotbeenfollowedyouwillgetreviewcommentsorpopupswarningyou.7.InTestLinkviaTestSpecificationtab,youcanselecttheTestSuitewhereyouwanttoimportthegeneratedXMLfile.

    Reply

    Angela May17,2013at10:18AM

    Isitpossibletoaddcustomcolumns?

    Reply

    Gowri May17,2013at6:51PM

    Yesitispossibletoaddcustomfieldsasacolumn.

    Angela May17,2013at11:35AM

    I got this error: The input variable or file you are trying toaccessdoesn'texist.Stoppingthemacro.Wouldyoubeabletogivesomeideasastowhatthaterrormeans?

    Anyhelpismuchappreciated!!

    Reply

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    Reply

    Gowri May17,2013at6:51PM

    HiAngela,

    Whichofthe3versionsofthemacroareyouusing?Also,atwhatpointareyougettingthiserror?

    Regards,Gowri

    Angela May21,2013at9:24AM

    HiGowri,

    We have a column for the execution type for each step andanother column called "Automated Test ID" for all the stepsthatthatareautomatedcorrespondingtotheindividualsteps.Iunderstandthatinthemacro,theexecutiontypeishardcodedtomanual.CanyoupleaseprovidesomeinsightonhowIcanmake it work for the columns I discussed? I'm not veryadvancedwithmacrocoding.

    Thanksmuch,

    Angela

    Reply

    Gowri May21,2013at6:55PM

    HiAngela,

    Areyouusingthismacro?TheTestExecutionTypeand Step Execution Type have been implementedhere.

    Thecolumnnamescanbechanged,butmakesureyou change it in themacro aswell. that is replace"TESTEXECUTIONTYPE"and"STEPEXECUTIONTYPE"inthe'SelectCase'Block,withyourcolumnnameinCAPITALLETTERS.https://docs.google.com/file/d/0BzBCa6US6n8TV0ZTLXlZa25vcUk/edit?usp=sharing

    Regards,Gowri

    Angela May22,2013at7:27AM

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    This isabitoff topicbut Iwaswondering ifanyonehashadtrouble importingcustomcolumns? I'musingTestLinkv1.9.6andIkeepgettingtheerrorthatmycolumnnameiswrong.Itriedputting thenameof thecustomfieldIcreated, the label,andeventhedatabaseIDofthefieldinthecustomfieldstable.Noneofitworked.

    Reply

    Angela May22,2013at7:28AM

    BythewayIdidsearchtheforumsbutcouldn'tfindananswer.

    AlpayErsoy May22,2013at8:35AM

    InTestLinkexecuteanexportoftestcases/suiteinxmlformat.Compare the exported file with the file which has beengeneratedbyGowri'sExcelmacro.Thecustomfieldsshouldbethesame.

    Reply

    Angela May22,2013at1:18PM

    ThanksAlpay!ItriedthatandIfoundthatthiswasthe error. The name of the field as saved in myprojectis"LabelTestCaseID"butithasabunchofwhite spaces after itmaking64 characters long as"LabelTestCaseID".WhenItriedtoimportitwiththewhitespaces,thewhitespacesgotremovedaftertheimportforsomereason.IfIopenmy.xmlfileinthe browser, I see the white spaces. After I try toimportthefile, thewhitespacesaregoneandIgetanerrorsayingthenamedoesn'tmatch.

    I registered for a forum account, just waiting so Icanpostthere.

    Angela May22,2013at1:19PM

    Sorryby saying "justwaiting so I canpost there" Imean waiting for the email to confirm myregistration.

    Gowri May22,2013at7:19PM

    HiAngela,

    It isbecause I couldhaveused theTRIM function.Or, you need to give the name of the custom field

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    withthe64characterslengthintheexcelsheet.Youneed to remove the TRIM function in the macro(onlyforthisparticularfield)andalsomakesuretohavethewhitespacesinthecolumnname.

    Regards,Gowri

    Gowri May22,2013at7:21PM

    Also, if you are able to see the whitespaces in thebrowser, I am not sure how I could help :( as itwouldbehowTestlinkimportworks.

    Regards,Gowri

    Angela May28,2013at12:19PM

    Thiscommenthasbeenremovedbytheauthor.

    Reply

    Angela May28,2013at12:34PM

    HiGowri,

    Usingyourmacro,I foundabug ingeneratingtheXMLwithmorethanonecustomfieldfromthefollowingcodeblock:

    'GettheTestcasescustomfieldsifany

    Theresult isanextra tag(seebelow) inbetweenthemultiplecustomfields.

    custom_fields>custom_field>name>/namevalue>/valuecustom_fieldscustom_field>name>/namevalue>/value

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    Reply

    Thanks for pointing it out :) As this was a workdoneinahurryforafriend,IdidnottestitasmuchasIwouldlike.Iamdependingonpeoplewhoareusingthemacrotoprovidemehelpfulfeedback,asImyselfamnotusingit.

    Thankyouforyourhelpagain!Regards,Gowri

    Gowri May28,2013at7:05PM

    Also,I'lltrytogettofixingthisassoonasIcan!

    SaayidRahim June3,2014at11:35PM

    Angela,

    Fortheextratagissuebetweencustomfieldsdoyouhaveafixformacro?Ifsoitwouldbereallygreatifyoucouldsharethesame...

    ThankyouandGoodDay!Saayid

    Anonymous July3,2013at9:27PM

    HiEveryone,

    canupleasehelpmeout for import functionality through thetestlink.

    Reply

    Gowri July7,2013at7:00PM

    Hi,

    Thestep by step instructions, with screenshots areavailable above for testlink import. What moredetailsdoyouneed?

    Regards,Gowri

    Anonymous July5,2013at10:49PM

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    Reply

    HiGowri,Iwill appreciate your efforts in providing the information ontestlink.

    I amnew to the testlink,we recently startedusingTestlink inour company,We are facing some problems while executingthe test casesas the testcaseno'sarenot featurebased.CouldyoupleaseletmeknowHow can we make test case no's independent based on thefeatureEx:Feature1TC1TC2TC3Feature2TC1TC2TC3

    Isitpossible?

    ThanksVijay

    Reply

    Gowri July7,2013at6:59PM

    HiVijay,

    Ireallydon'tunderstandyourquestion.Pleasegivemoreinformationonwhatyouactuallyneed.

    Regards,Gowri

    Bobby July13,2013at4:20AM

    Itrytousertousetheyoursuggestions inTestLink1.9.7,buthappenthat in the testcase import, thesectionspreconditionandstepsdon'tload,canyouhelpme?

    Reply

    AlpayErsoy July18,2013at2:05AM

    AreyouusingGowri'sorAlpay'stool?

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Anonymous July17,2013at12:57PM

    Alpay,LovetheExceltool.

    IhadaquestionIamnotsureIhaveseeninthethread.Itendto usemultiple layers of Test Suites to break up test cases indifferentsections.DoesthetoolsupportameanstodomultiplelayersofTestSuites?

    Example:TestSuiteArea1.0TestSubSuiteArea1.1TestSection1.1.1followedbytestcasesTC1TC2TC3

    Ifigure if thetooldoesnotsupport thisoptionImayhaveanimport area in Test Link then move the test cases to theappropriatetestsectioncreatedmanually.

    Thanksagainforthetool:)

    Charles

    Reply

    AlpayErsoy July18,2013at2:02AM

    Charles,thanksforthepositiveremarks.:)ThetooldoesnotsupportmultiplelayersofTestSuites.Youcanuse different subtest suites and once you have imported thexml, move them manually to the correct suite. Support formultiplelayersisnotintheroadmapeither.

    Reply

    SaayidRahim June3,2014at11:31PM

    HelloAlpay,

    IamintheprocessofexploringTestlinkandihaveusedyourtool.Thanksforsharingthesameandforautomatingandmakingthe importprocesssimple.If it is possible could you share the workbookpassword/macro script at [email protected]?

    Thanksagainandappreciateforsharingthetool!

    Haveanexcellentday..!Saayid

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Anonymous July18,2013at7:03AM

    ThanksfortheReplyAlpay,

    IhavebeenusingTestlink1.9.7anditappearsIcanimportatthelowerlevelsuites.TheonlythingIfoundisIdontneedtocreatetheLastSubsuitenameExample"1.1.1"Becauseifthatisthenameofyoursuiteinthetoolthenitwillcreatethatsuitenamebelowthelevelyouimport.

    ThusIendedupwith1.1.11.1.1

    So I justmoved them but I suspect that I could have just nocreated the last suitename (1.1.1)byhandand let the importprocesscreateitforme.

    JustpassingonwhatIfound:)

    Thanks:)

    Charles

    Reply

    Anonymous July30,2013at12:28PM

    Alpay,

    New question: My test team is hoping to modify theRequirementfield"Status"to"TestMethod".

    Inoticedthemacroispasswordprotected.IsthereawayIcangetthepasswordtomodifythemacrotoadjustthefieldorifwecouldgetacopyoftheMacroscriptsowecouldmodifyit.

    Any help would be great. I can provide you with my emailaddressifneeded.

    Thanks:)

    Charles

    Reply

    Gowri July30,2013at10:20PM

    You can do it in the macro. It is NOT passwordprotected.IamnotsurewhyafewpeoplearebeingaskedforpasswordsasIhavesetittoPublic.Butitthe older version. Please get the latest excelspreadsheetwithmacrofromhere.http://testlinkimport.blogspot.sg/2013_07_01_archive.html

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    Reply

    AlpayErsoy July30,2013at10:45PM

    Charles: The Requirement Status field is a fixed field ofTestlink.Ifyouchangeitasproposed,youwillnotbeabletotimport the generated xml in TestLink. You can test this byadaptingthegeneratedxml.DoesTestlinkalsosupportcustomfieldsinRequirements?

    Gowri:Ihavepasswordprotectedmymacros,justtomakesureIdonoghavetotgivesupportformodifiedcode.

    Reply

    Gowri July30,2013at10:54PM

    HiAlpay,

    Sorry, I didn't notice that the question wasaddressedtoyou:)

    I think it is possible to change the name of theStatus field inTestlink(inenGBIguess).ButIamnotsureiftheoriginalposterhasdonethisalready!And, import still can work as it will still populateunder status tag as the XML tags itself arehardcoded in the macro. We just need to includeCase"TestMethod"alongwithCase"Status"

    Regards,Gowri

    Anonymous July31,2013at5:13AM

    YeahwewereconsideringmodifyingthePHPcodetochangethe field in TestLink also. But I understand itmay affect theimport process. I will do some testing and see if we shouldleaveitsettoStatusbutifwecanmodifythefieldtoallowforadifferent set of fixed values that can be imported. Such as"Inspection" or "Analysis". All of our requirements areconsidered "Implemented" already since our requirements areprovidedtousbyourclient.

    IfwecanjustchangethetitleofthefieldinTestLinkandleavethenodesetto"Status"forXMLbutallowforadifferentsetofdatavaluesIthinkweshouldbegood.

    Thanksforthequickreply.

    Charles

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    Reply

    Reply

    Anonymous July31,2013at5:59AM

    Gowri,

    Partofyourresponseremindedmeofaquestion. IhavebeensettingusersmanuallytoEnglishUSbutisthereawaytosetthe default English use? Not sure if it matters too much. IsuspectonlyafewfielditemsaredifferentfromEnglishGBandEnglishUS.

    Wecancheckoutchangingthenamingof thefieldusingthe"Internationalization"forthefield.Istillneedtofigureouthowtomodifythedatathatcanbestoredinthefieldtoincludenewitems.Or is itpossiblewithnamingfieldstochangethedatastored for "Status" from items like "Draft" to something like"Inspection"?

    Charles

    Reply

    Gowri August6,2013at8:01AM

    HiCharles,Youshouldbeabletosetdefaultlanguageintestlinkin config.inc.php. The parameter to set is $g_default_language.Theoriginal importwillworkfine even if you change the name of the field inlocale.

    NitikaSatija February4,2014at3:19AM

    hi,plz tellme what settings i hve to so if need custom fields toappearhorizontally??andwhenweusemorethanonecustomfieldthanwearenoabletoimportthetestcase?plztellthesolution.

    Reply

    Gowri July23,2014at1:19AM

    JustaddcolumnswithCustomfieldnameasheader

    SaayidRahim June2,2014at2:58AM

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Replies

    Reply

    Replies

    Reply

    Replies

    HelloAll,

    Gowri.. thanks for the excel macro.. works well.. waswondering how i can add extra custom fields to therequirements/TestSuite/Casetemplates???

    Anyonewhohasananswerforthesameoranyhelponwhatneedstobetweekedwouldbereallyhelpful!

    Thankyouall!Forum'shighlyinformativeandreallyhelpful!

    Reply

    Gowri July23,2014at1:19AM

    JustaddcolumnswithCustomfieldnameasheader

    NaviSamra July11,2014at6:40AM

    HelloSir/Ma'm

    Iwouldliketoknow,canweassigntheissuesfromoneprojecttoother.

    Thanks

    Reply

    Gowri July23,2014at1:18AM

    Nope,thisisnotpossibleinTestlink.

    VishalBendre July23,2014at1:01AM

    Hi,Iamconverting .xlsx file to .xmland then trying to import itintotestlink.IamgettingerrorLoad_xml_koPlease,helpinthis.Iwantedtoimport.xlsxfilestothetestlink

    Reply

    Gowri July23,2014at1:18AM

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

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    Reply

    Replies

    Reply

    Anonymous September3,2014at2:33AM

    IhaveincreasedthesizeofTestcasenamebutwhenIimportitusing xml file, testcase name is getting truncated after 100characters..Anyhelpinthis???

    Reply

    Gowri September3,2014at7:39PM

    I think you have to increase the test case name inconfig file as well. Don't remember the exactvariablename.But,shouldbeeasyenoughtofigureout, ifyoutakea look.Mightalsoneedto increasethelengthofthedatabasecolumn.

    Max March20,2015at7:38AM

    Hi Gowri, do you know any method to export/importattachment in Requirements ? I tried to export somerequirementwithattachmentinXMLbuttheresultingstructuredoesn'tcontainnayusefullinktotheattacheddoc.TIAMassimo

    Reply

    Unknown April7,2015at2:33AM

    Hiall,Iwouldliketointegratesomedatatestsfromxlsfiletotestlink(dataresultscheck).IgotonelinebyresultsonmyXLSfile,andiwouldliketointegratethemintothesametestcase.Isitpossible?

    Reply

    Anonymous April8,2015at5:56AM

    Hiall,In our company, most of the projects have 90% samerequirements means90%of testsuit/ testcaseexecution issame

    Is it possible to share / use same test suit / test cases indifferentprojects?

    ordoweneedtocreatedifferentsetoftestsuits/testcasesforeachproject?(duplicatetestsuits/testcases)

  • 22/10/2015 TestLinkImport:TestLinkImport

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

    NewerPost

    Enteryourcomment...

    Commentas: GoogleAccount

    Publish Preview

    Home

    Subscribeto:PostComments(Atom)

    ThanksinadvanceSReply

    RANJITHKUMAR April15,2015at10:50PM

    HelloEveryOne,Please let me know where the testcasess and Test plan arestoringinthebitnamitestlink,IwouldliketotakethebackupofbitnamiTestcases

    Reply