- kevsbox
- Posts : 4
Join date : 2015-04-22
Age : 53
Location : Here
selenium-ant html formatting issue
Wed Apr 22, 2015 10:27 pm
Hi
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.
For example in the xml file we see
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
Thanks
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.
- Code:
<target description="Create HTML report" name="junitreport" >
<junitreport todir="${junit.output.dir}">
<fileset dir="${junit.output.dir}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${junit.output.dir}"/>
</junitreport>
</target>
For example in the xml file we see
- Code:
<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
Thanks
- kevsbox
- Posts : 4
Join date : 2015-04-22
Age : 53
Location : Here
Re: selenium-ant html formatting issue
Thu Apr 23, 2015 9:53 pm
Dudes, sorted this by running a class after the html was created which replaced the offending text.
Permissions in this forum:
You cannot reply to topics in this forum
|
|