| View previous topic :: View next topic |
| Author |
Message |
SenseTalkDoug Auberlord

Joined: 27 Jun 2003 Posts: 604 Location: Colorado
|
Posted: Tue Nov 25, 2003 12:42 pm Post subject: Reporting Results on the Web |
|
|
Run the HTMLReport script in this Reporting suite and it will ask you to select a suite. Select one of your existing Eggplant suites and an HTML document will be produced listing the status of the most recent run of every script in that suite.
The report is produced from an HTML Template file (found in the Scripts directory within the suite) that can be edited to customize the look and contents of the report. Two different sample templates are included to get you started.
With a little bit of work it should be relatively easy to incorporate this script into your test environment, and adapt it to generate pages accessible on your company's website or intranet, or directly from the Eggplant machine (by enabling Personal Web Sharing in System Preferences).
| Description: |
| Generates HTML Results for a Suite |
|
 Download |
| Filename: |
Reporting.suite.zip |
| Filesize: |
33.22 KB |
| Downloaded: |
2010 Time(s) |
Last edited by SenseTalkDoug on Mon Nov 14, 2005 12:45 pm; edited 2 times in total |
|
| Back to top |
|
 |
craigeman
Joined: 13 Aug 2004 Posts: 2 Location: San Francisco, CA
|
Posted: Mon Nov 14, 2005 10:49 am Post subject: New Reporting suite |
|
|
Doug, where can I find the new Reporting suite, I have the older version and I'm getting the same error.
thank you
|
|
| Back to top |
|
 |
SenseTalkDoug Auberlord

Joined: 27 Jun 2003 Posts: 604 Location: Colorado
|
Posted: Mon Nov 14, 2005 12:51 pm Post subject: |
|
|
Hi -- There was a problem with the configuration of the forum software, which made the downloads unavailable. Thanks for bringing it to our attention.
We've got it corrected now, so you should be able to download the current version of the Reporting suite again (at the end of the initial post on this topic).
|
|
| Back to top |
|
 |
vipgarg
Joined: 09 Aug 2006 Posts: 3
|
Posted: Wed Aug 16, 2006 9:17 pm Post subject: Unable to get the script detail output |
|
|
Hi , Reporting Suit provides me only the script output pass or fail .
But it does not give me the detail at each step
e.g. I need the information for each put command
|
|
| Back to top |
|
 |
SenseTalkDoug Auberlord

Joined: 27 Jun 2003 Posts: 604 Location: Colorado
|
Posted: Sun Aug 27, 2006 4:20 pm Post subject: |
|
|
The name of the log file containing the detailed execution log for each run of a script can be found using the ScriptResults() function. Here's a sample script that shows how you could use this function to access the log for the most recent run of each script in a suite.
| Code: | (* outline of a script to report the details of latest run of each script in a suite *)
put my folder's folder into suitePath
put "Suite: " & suitePath
set scriptFolder to suitePath & "Scripts"
repeat with each scriptName in the files of scriptFolder
if scriptName is my name then next repeat -- skip me
put scriptName & ":"
-- get information on the most recent run of that script
get the last item of ScriptResults(scriptName)
if it is empty then next repeat -- skip; no results
put file (the LogFile of it) into detailedResults -- get log file contents
-- process detailedResults here
put the last three lines of detailedResults -- example
end repeat
|
Use this as a starting point and adapt it for your needs, such as by using the techniques shown in the HTMLReport script to report the results that you're interested in on a web page.
|
|
| Back to top |
|
 |
eggtester Knight of the Nightshade

Joined: 26 May 2010 Posts: 27 Location: Bristol, UK
|
Posted: Thu Jul 15, 2010 2:28 am Post subject: |
|
|
I've just attempted to use this suite in a Windows XP environment and when I select the suite folder I just get the message "There are no test results for suite suitename.suite.
Do I need to make any alterations for the Windows XP environment? There is a .csv in that folder with a bunch of results in it so it's going wrong somewhere (or I am!).
|
|
| Back to top |
|
 |
EggplantMatt Auberlord

Joined: 24 Jun 2003 Posts: 578 Location: Boulder, CO
|
Posted: Fri Jul 16, 2010 10:49 am Post subject: |
|
|
You'll need to modify the FullSuitePath method of the latestSuiteResults script. Starting with the line: | Code: | | if suite does not begin with "/" then | it's expecting Unix-style paths, not Windows paths. You could probably remove the call to that function and just assume that you've got the full path. If you find that you sometimes don't get the full path, then you can worry about modifying that code.
|
|
| Back to top |
|
 |
|