Problem with emailing the RESULTs

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Problem with emailing the RESULTs

Postby spacomp » Mon Feb 16, 2009 10:10 am

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]
spacomp
TestLink user
 
Posts: 11
Joined: Wed Feb 11, 2009 1:17 pm

Improper format of the email

Postby gayatrim » Tue Feb 24, 2009 6:57 am

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/default/images//favicon.ico" />


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

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


<script type="text/javascript"
src="http://linsrv/testlink/gui/javascript/testlink_library.js"
language="javascript"></script>
<script type="text/javascript"
src="http://linsrv/testlink/gui/javascript/test_automation.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>


----------------------------------------------------------------------------------------------
gayatrim
TestLink user
 
Posts: 3
Joined: Tue Feb 24, 2009 6:31 am

Thats a BUG with Testlink 18.4 RC4 -

Postby spacomp » Tue Feb 24, 2009 8:01 am

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
spacomp
TestLink user
 
Posts: 11
Joined: Wed Feb 11, 2009 1:17 pm

Postby gayatrim » Tue Feb 24, 2009 8:48 am

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.
gayatrim
TestLink user
 
Posts: 3
Joined: Tue Feb 24, 2009 6:31 am

This resolved the problem for ever

Postby spacomp » Tue Feb 24, 2009 11:27 am

Thanks Gayatri....

This has solved the problem...
spacomp
TestLink user
 
Posts: 11
Joined: Wed Feb 11, 2009 1:17 pm


Return to TestLink 1.8 (OBSOLETE => EOL)[LOCKED]



Who is online

Users browsing this forum: No registered users and 2 guests