Forum Discussion

Madhavi3's avatar
Madhavi3
New Member
12 months ago

Zephyr automation

Hi

1. Running zephyr automation using folder watch, what is the file we uploading? Is it testexcution.xml file? if so which field in XML tells Zephyr which test case was executed?

2. How Zephyr identifies which test script is executed when we use folder watcher/any automation technique.  Thanks in Advance

 

2 Replies

  • In the case of the JUnit parser (I haven't tried the other parsers, nor setup a custom parser yet), the test is linked using the value in the <testcase ....... name="xxxxx" .......> in the XML.  

     

    FWIW -- We are actually post-processsing the XML file to update that, so it has the full name (including the contents of the <testcase ....... classname="yyyyy" .......>) rather than just the short name, because that is the way we have named them in our Zephyr test repository.  It is a fairly simple transform - e.g. in PowerShell we use this snippet 

     

    # find all "testcase" nodes, and update the "name" part to include "classname" as well
    #    because that's how we named the test cases in the Zephyr Enterprise
    $matchingNodes = $xml.SelectNodes("//testcase")
    foreach ($node in $matchingNodes) {
        $node.SetAttribute("name", $node.classname + "." + $node.name)
    }

     

     

  • SRIDZQ44's avatar
    SRIDZQ44
    Occasional Contributor

    Madhavi 

    Did u get the solution go thru please let me know I am using test suite thx

    sridhar_murari@yahoo.co.in