Page 1 of 1

Problem with emailing the RESULTs

Posted: Mon Feb 16, 2009 10:10 am
by spacomp
Dear All,

I have configured the TESTLINK 1.8 RC4 finally.

I have an issue with the emailing the RESULTS.

I am done with the SMTP Settings: No issues from here

But the email format is not delivered as it used to. for 1.7.4.

I guess its a BUG with new version [1.8 RC4]

Please let me know if anything needs to be set

Regards

Santosh S[/img]

Improper format of the email

Posted: Tue Feb 24, 2009 6:57 am
by gayatrim
Even I'm facing the same problem,
In Testlink RC4, when a report is generated in the email format, the email is not in a readable format i.e the results are not displayed in a grid as they were in RC3.
The contents of the email are actually the source of the html.
Guess some problem with some html tag hence the email client is not able to render the contents properly.

This issue is blocking us from using the reports in email format in TestLink RC4.


Following is a sample report that was emailed

----------------------------------------------------------------------------------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-language" content="en" />
<meta http-equiv="expires" content="-1" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="author" content="Martin Havlat" />
<meta name="copyright" content="GNU" />
<meta name="robots" content="NOFOLLOW" />
<base href="http://linsrv/testlink/"/>
<title>TestLink</title>
<link rel="TestLink icon"
href="http://linsrv/testlink/gui/themes/defau ... avicon.ico" />


<style media="all" type="text/css">@import
"http://linsrv/testlink/gui/themes/defau ... s";</style>

<style media="print" type="text/css">@import
"http://linsrv/testlink/gui/themes/defau ... s";</style>


<script type="text/javascript"
src="http://linsrv/testlink/gui/javascript/t ... library.js"
language="javascript"></script>
<script type="text/javascript"
src="http://linsrv/testlink/gui/javascript/t ... omation.js"
language="javascript"></script>




<script type="text/javascript"
src="http://linsrv/testlink/gui/javascript/sorttable.js"
language="javascript"></script>

<script type="text/javascript" language="javascript">
var fRoot = 'http://linsrv/testlink/';
var menuUrl = '';
var args = '';

// To solve problem diplaying help
var SP_html_help_file = '';

//attachment related JS-Stuff
var attachmentDlg_refWindow = null;
var attachmentDlg_refLocation = null;
var attachmentDlg_bNoRefresh = false;

// bug management (using logic similar to attachment)
var bug_dialog = new bug_dialog();
</script>

</head>

<body>

<h1 class="title">Test Report: Results of Test Cases for all Builds</h1>


<div class="workBack">
<table>
<tr>
<td>Test Project</td><td> : </td>
<td>
<span style="color:black; font-weight:bold; text-decoration:
underline;">Testproject</span>
</td>
</tr>
<tr>
<td>Test Plan</td><td> : </td>
<td>
<span style="color:black; font-weight:bold;
text-decoration:underline;">plan1-TestProject</span>
</td>
</tr>
</table>

<table class="simple" style="width: 100%; margin-left: 0px;">
<tr>
<th>Test Suite</th>
<th>Test Case</th>
<th>Version</th>

<th>1.0.0.1</th>
</tr>
<tr>


<td>Suite1</td>


<td>Test-1:Case sensitivity</td>


<td>1</td>


<td style="color: green; font-weight:bold">Passed</td>
</tr>
<tr>


<td>Suite1</td>


<td>Test-2:check for blank</td>


<td>1</td>


<td style="color: red; font-weight:bold">Failed</td>

</tr>
<tr>


<td>Suite1</td>


<td>Test-3:Check for max length that can be entered.</td>


<td>1</td>

<td style="color: gray;">Not Run</td>

</tr>
</table>

Generated by TestLink on 24/02/2009 11:49:49
</div>

</body>
</html>


----------------------------------------------------------------------------------------------

Thats a BUG with Testlink 18.4 RC4 -

Posted: Tue Feb 24, 2009 8:01 am
by spacomp
Hi Gayatri,

Till the group members fix this issue. Here is a turnaround for this email reporting.

[1] Copy the whole HTML code
[2] Open a next TEXT file and paste it
[3] Now save the file with an HTML extension [I.e. save as "Report.html"]
[4] Open the file with any browser
[5] You will see the REPORT intact

Hope this will help you in for reporting for meantime

Santosh

Posted: Tue Feb 24, 2009 8:48 am
by gayatrim
Hi Santosh,

Thanks for your suggestion, it does help.

Another workaround that helps solve this issue is

in \testlink\lib\functions\email_api.php, after

function email_send( $p_from, $p_recipient, $p_subject, $p_message,
$p_cc='', $p_category='', $p_exit_on_error=false, $htmlFormat = false )
{


In the next line I added $htmlFormat = true;

This fixes the email report and sends it in proper html format.

Gayatri.

This resolved the problem for ever

Posted: Tue Feb 24, 2009 11:27 am
by spacomp
Thanks Gayatri....

This has solved the problem...