How to pass parameter to ant scripts?

前端 未结 2 1390
忘了有多久
忘了有多久 2021-02-20 17:19

Recently I am working on selenium webdriver 2.0 (developing automation framework). As per requirement for every faiulre the screenshot must be capture (file path and filename: .

2条回答
  •  北海茫月
    2021-02-20 18:09

    According to the documentation of the JUnitReport task, you can pass XSL paramemeters using a nested param tag on the report element.

    Since Ant 1.7 the report tag supports nested param tags. These tags can pass XSL parameters to the stylesheet.

    So you could pass the parameter value to the stylesheet something like this:

              
        
    
    

    I wasn't clear from your question. I think you said you have already supported the parameter in your XSL stylesheet. Anyway, here's a summary of how you can use it:

    
    
        
        
    
    
        
    
            
            
    

提交回复
热议问题