Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 314720 Details for
Bug 459721
FEAT: save command for saving test results
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
hts/certificationtest.py patch to get first test run timestamp
certificationtest.patch (text/plain), 1.93 KB, created by
Greg Nichols
on 2008-08-21 15:52:11 UTC
(
hide
)
Description:
hts/certificationtest.py patch to get first test run timestamp
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2008-08-21 15:52:11 UTC
Size:
1.93 KB
patch
obsolete
>Index: certificationtest.py >=================================================================== >RCS file: /cvs/qa/hts/hts/certificationtest.py,v >retrieving revision 1.46 >diff -u -r1.46 certificationtest.py >--- certificationtest.py 17 Jul 2008 00:31:14 -0000 1.46 >+++ certificationtest.py 21 Aug 2008 15:51:11 -0000 >@@ -58,7 +58,11 @@ > > def timeToString(self, theTime): > return time.strftime(Constants.DATETIMEFORMAT, theTime) >- >+ >+ def timeStringToTimestamp(self, theTimeString): >+ >+ return theTimeString.replace(" ", "").replace(":", "").replace("-", "") >+ > def removeBadCharacters(self, value): > try: > # badnumbers = [0,8,27,246] >@@ -94,7 +98,7 @@ > topElement.setAttribute(Attributes.hts_release, version.release) > > # add the style sheet processing instruction >- stylesheet = self.document.createProcessingInstruction("xml-stylesheet", "href=\"css/results.css\" type=\"text/css\"") >+ stylesheet = self.document.createProcessingInstruction("xml-stylesheet", "href=\"/hts/css/results.css\" type=\"text/css\"") > self.document.insertBefore(stylesheet, topElement) > > >@@ -120,7 +124,17 @@ > > def setPlanTime(self, planTime): > self.document.documentElement.setAttribute(Attributes.plan_time, self.timeToString(planTime )) >- >+ >+ def getRunTime(self): >+ testElements = self.document.documentElement.getElementsByTagName(Tags.test) >+ for testElement in testElements: >+ test = Test(testElement, self.document) >+ if test.wasRun(runNumber=1): >+ run = test.getRun(number=1) >+ if run: >+ return run.getRunTime() >+ return None >+ > def addTestRun(self): > numberOfRuns = self.getNumberOfTestRuns() + 1 > self.document.documentElement.setAttribute(Attributes.number_of_runs, "%u" % numberOfRuns)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 459721
:
314718
|
314719
| 314720