Sending Errors via Mail

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Sending Errors via Mail

Postby mrommel » Thu Aug 09, 2012 10:26 am

Hello together,

i have to apologize my English (because I'm German 8) )

I have looked for an option to send errors, that are logged in the error log on the server via mail, but i did not find it in this forum...

Is there any possibility to send those errors (like error while importing XML Testcases) by mail?
If yes, what must be changed in TestLink 1.9.3 (Prague) config?

Maybe this will help a bit
Server: Debian
Database: MySql (hosted on an other server)


Could you please help?

Thanks a lot.

Michael
mrommel
Advanced user
 
Posts: 16
Joined: Thu Jul 19, 2012 9:37 pm

Re: Sending Errors via Mail

Postby fman » Thu Aug 09, 2012 5:24 pm

this feature is not present, you can try may be writting an error handler to do this
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: Sending Errors via Mail

Postby mrommel » Fri Aug 10, 2012 6:48 am

Oh, bad news... :(
But thanks :)

I know it is possible to create own "add-ons" but, i never did something like this.
Is there any stuff that is telling me what must be made to solve my prob?
mrommel
Advanced user
 
Posts: 16
Joined: Thu Jul 19, 2012 9:37 pm

Re: Sending Errors via Mail

Postby fman » Fri Aug 10, 2012 7:34 am

The kind of info you need is mpre PHP than TestLink, then think you have to do some searchs on the net.
What is not clear for me , is why you want to have this kind of alerts.
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: Sending Errors via Mail

Postby mrommel » Fri Aug 10, 2012 7:49 am

I need those alarms because i am the only one who has access to the server.
If i am not at office and there will happen an error while importing Testcases in xml files nobody will be able to read the logs...

And the error message on the frontend does not display the same error messages.
They depend on each other but the internal testlink error handling does not show sql import errors or something like this...
Or is there any other way to display them?
Maybe you can display them too?

Thanks,
Michael
mrommel
Advanced user
 
Posts: 16
Joined: Thu Jul 19, 2012 9:37 pm

Re: Sending Errors via Mail

Postby fman » Fri Aug 10, 2012 10:34 am

give a look to files on [TL INSTALLATION DIR]/logs/ (do not remember if we have all info there).
may be you can accept a workaround => write a scheduled job (user your Operation System job scheduler) to mail you these files.

what about creating a role that can ONLY give a look to event viewer ? (again do not remember if you have there all info you need/want)
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: Sending Errors via Mail

Postby mrommel » Fri Aug 10, 2012 3:29 pm

It would be a good Idea if you can display SQL syntax errors that are logged in the files in Testlink too....
I don't know if it is possible...
But if, i would create this role...

But there is an other problem...
This role can only look into loggs for each project...
It is easier if i would create this workarround and could send those mails...
Because we have more than six different projects that must be displayed while there occur errors...

But thanks a lot for this information.

Best Regards,

Michael
mrommel
Advanced user
 
Posts: 16
Joined: Thu Jul 19, 2012 9:37 pm

Re: Sending Errors via Mail

Postby fman » Fri Aug 10, 2012 4:06 pm

Just found, do not think how useful can be:

http://net.tutsplus.com/tutorials/php/q ... -with-php/
if do develop something, open an issue (with category : Contribution Maintained by user) and attach your code.

seems http://php.net/manual/en/function.error-log.php can do the trick

and..
http://www.jamescaws.com/notes/automati ... g-content/

you need to give a look to method watchPHPErrors() in logger.class.php and can do a quick and dirty solution.
I'm going to add this as feature request on mantis because seems an interesting feature (hmm may be you can make a donation if
we provide a good feature)
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: Sending Errors via Mail

Postby mrommel » Fri Aug 24, 2012 10:13 am

I'll check it if i have less projects to test...
At the moment i am running out of resources...
I am not able to create Testcases while testing... i have to create them in the next Scrum Sprint... :roll:
Only because of a rc, that should be offered to our customers... :roll:

But thanks for the information.
I'll check it and i'll give you a feedback about that option.

Regards,
Michael
mrommel
Advanced user
 
Posts: 16
Joined: Thu Jul 19, 2012 9:37 pm

Re: Sending Errors via Mail

Postby fman » Fri Aug 24, 2012 1:18 pm

fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am


Return to Installation and configuration



Who is online

Users browsing this forum: No registered users and 1 guest

cron