Display results as :

Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Yesterday at 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce


selenium-ant html formatting issue

View previous topic View next topic Go down

selenium-ant html formatting issue

Post by kevsbox on Wed Apr 22, 2015 10:27 pm


I am using Eclipse, Selenium and Ant.
I have a testing process which grabs screenshots and tries to display them in the end HTML.
The process which creates the html in the build.xml is fairly standard, see below.
    <target description="Create HTML report" name="junitreport" >
        <junitreport todir="${junit.output.dir}">
            <fileset dir="${junit.output.dir}">
                <include name="TEST-*.xml"/>
            <report format="frames" todir="${junit.output.dir}"/>
However the result html does not show the < and /> for the attachment lines. However if I manually fix this the images display correctly in any browser. Can anyone suggest how I can fix this please.

For example in the xml file we see
<img alt='Screenshot' src='../screenshots/Provider3.png'/>

and int the HTML file the same line is
& lt;img alt='Screenshot' src='../screenshots/Provider3.png'/& gt;
Note I have put a space after the &'s so they do not convert to < etc


Posts : 4
Join date : 2015-04-22
Age : 47
Location : Here

Back to top Go down

Re: selenium-ant html formatting issue

Post by kevsbox on Thu Apr 23, 2015 9:53 pm

Dudes, sorted this by running a class after the html was created which replaced the offending text.

Posts : 4
Join date : 2015-04-22
Age : 47
Location : Here

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum