Thursday, November 17, 2011

Selenium - Build standalone jar file using ANT



  
  Selenium RC Common Build Tasks
 
  
  
  
  
  
  
  
   
 
 
  
  
  
  
  

  
    
   
   
   
  

  
   
       
     
  
  
    
   
    
      
    
  

  
    
    
       
    
    
      
        
        
        
        

8 comments:

  1. Nice information Bharath.

    But when I run this build,unable to use that capture screenshot listener.
    Getting below error:
    annotation value must be a class literal
    @Listeners ((TestNGCustom.class))

    Please suggest me how to use that one

    ReplyDelete
  2. Bharath,

    I need to execute the testng suite of 5 cases,by opening only browser.

    right now it is opening 10 browsers

    Is it possible?.

    ReplyDelete
  3. Hello Rama,

    I think you have not included the TestNG.jar file in the jars folder.

    ReplyDelete
  4. Hi Bharath,

    Actually that issue was solved, when I included listener in the suite xml file instead in the test script.

    Thanks,
    Rama

    ReplyDelete
  5. Hi Bharath,

    When I use the above build.xml now,getting below error:
    "build.xml:8: property doesn't support the nested "property" element". for the line
    "".

    How to proceed with this?
    When I tried last time in Nov'2011 it got worked,but not now.

    ReplyDelete
    Replies
    1. I think you would have given wrong package name or JARs location.

      Delete
  6. Hi Bharath,

    Would it work for webdriver as well?

    Regards,
    Dheeraj

    ReplyDelete