summaryrefslogtreecommitdiffstats
path: root/vstf/vstf/controller/reporters
diff options
context:
space:
mode:
authorYiting.Li <liyiting@huawei.com>2016-01-22 10:46:57 +0800
committerJun Li <matthew.lijun@huawei.com>2016-01-25 01:30:21 +0000
commit07fa6d43cf0ac1baf3cd67e741f474273fbd387d (patch)
tree17ed17fa64b121bd5189070f46e14db336a50bd4 /vstf/vstf/controller/reporters
parent486719ea0024e683f4e90832e647becf3d5d5ab7 (diff)
JIRA: BOTTLENECKS-29
Add a end-to-end test framework delete the wrong author flag and fix some missing of the copy right Change-Id: Ia9f72ff3e523f05cd0d5e32e3349a3f6acad5bd1 Signed-off-by: Yiting.Li <liyiting@huawei.com> (cherry picked from commit 0ea3b714615e7a9383048a13695bbe4d62f028fd)
Diffstat (limited to 'vstf/vstf/controller/reporters')
-rwxr-xr-xvstf/vstf/controller/reporters/README109
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/__init__.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/mail/__init__.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/mail/mail.py2
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/mail/sendmail.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/__init__.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/candy_generator.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/data_factory.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/html/__init__.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/html/html_base.py1
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/html/htmlcreator.py1
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/pdf/__init__.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/pdf/element.py2
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/pdf/pdfcreator.py2
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/pdf/pdftemplate.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/pdf/story.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/pdf/styles.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/provider/__init__.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/provider/html_provider.py0
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/report/provider/pdf_provider.py2
-rw-r--r--[-rwxr-xr-x]vstf/vstf/controller/reporters/reporter.py1
21 files changed, 2 insertions, 118 deletions
diff --git a/vstf/vstf/controller/reporters/README b/vstf/vstf/controller/reporters/README
deleted file mode 100755
index 1ed65360..00000000
--- a/vstf/vstf/controller/reporters/README
+++ /dev/null
@@ -1,109 +0,0 @@
-Tree
-
-├── __init__.py
-├── mail
-│ ├── __init__.py
-│ ├── mail.py
-│ └── sendmail.py
-├── report
-│ ├── data_factory.py
-│ ├── html
-│ │ ├── html_base.py
-│ │ ├── htmlcreater.py
-│ │ ├── html_text.py
-│ │ └── __init__.py
-│ ├── __init__.py
-│ ├── pdf
-│ │ ├── element.py
-│ │ ├── __init__.py
-│ │ ├── pdfcreater.py
-│ │ ├── pdftemplate.py
-│ │ ├── story.py
-│ │ └── styles.py
-│ └── provider
-│ ├── html_provider.py
-│ └── __init__.py
-└── reporter.py
-
-
-Entry:
- reporter.py
-
- usage: reporter.py [-h] [-rpath RPATH] [-mail_off] [--taskid TASKID]
-
- optional arguments:
- -h, --help show this help message and exit
- -rpath RPATH the path name of test results
- -mail_off is need send mail the for the report
- --taskid TASKID report depand of a history task id.
-
-Settings:
- mail_settings
-
- {
- "server":
- {
- "host": "localhost",
- "username": null,
- "password": null
- },
- "body":
- {
- "from": ["vstf_from@vstf.com"],
- "to": ["vstf_to@vstf.com"],
- "cc": ["vstf_cc@vstf.com"],
- "bcc": ["vstf_bcc@vstf.com"],
- "subject": "Elastic Virtual Switching Performance Test Report"
- }
- }
-
- html_settings
-
- {
- "style":{
- "table":{
- "font-family":"\"Trebuchet MS\", Arial, Helvetica, sans-serif",
- "border":"1px solid green",
- "border-collapse":"collapse",
- "padding":"8px",
- "text-align":"center"
- },
- "td":{
- "border":"1px solid green",
- "padding":"8px",
- "word-wrap":"break-all"
- },
- "th":{
- "background-color":"#EAF2D3",
- "border":"1px solid green",
- "padding":"8px"
- }
- }
- }
-
- data_settings
-
- {
- "ovs":{
- "content":{
- "version":3.0
- },
- "title":"Ovs info"
- },
- "result":{
- "content":{},
- "title":"Performance Result"
- },
- "subject":"ATF Performance Test Tnv Model"
- }
-Module:
- mail
- html
- pdf
-
-
-Others:
- pip processes the package "reportlab"
-
- pip install reportlab
-
diff --git a/vstf/vstf/controller/reporters/__init__.py b/vstf/vstf/controller/reporters/__init__.py
index df7d24d0..df7d24d0 100755..100644
--- a/vstf/vstf/controller/reporters/__init__.py
+++ b/vstf/vstf/controller/reporters/__init__.py
diff --git a/vstf/vstf/controller/reporters/mail/__init__.py b/vstf/vstf/controller/reporters/mail/__init__.py
index df7d24d0..df7d24d0 100755..100644
--- a/vstf/vstf/controller/reporters/mail/__init__.py
+++ b/vstf/vstf/controller/reporters/mail/__init__.py
diff --git a/vstf/vstf/controller/reporters/mail/mail.py b/vstf/vstf/controller/reporters/mail/mail.py
index 2241d9ad..6792ad91 100755..100644
--- a/vstf/vstf/controller/reporters/mail/mail.py
+++ b/vstf/vstf/controller/reporters/mail/mail.py
@@ -107,7 +107,7 @@ class Mail(object):
if __name__ == "__main__":
m = Mail()
m.attach_addr(["vstf_server@vstf.com"], m.FROM)
- m.attach_addr(["wangli11@huawei.com"], m.TO)
+ m.attach_addr(["test@test.com"], m.TO)
context = """
<!DOCTYPE html>
<html>
diff --git a/vstf/vstf/controller/reporters/mail/sendmail.py b/vstf/vstf/controller/reporters/mail/sendmail.py
index a4d7bb0a..a4d7bb0a 100755..100644
--- a/vstf/vstf/controller/reporters/mail/sendmail.py
+++ b/vstf/vstf/controller/reporters/mail/sendmail.py
diff --git a/vstf/vstf/controller/reporters/report/__init__.py b/vstf/vstf/controller/reporters/report/__init__.py
index 547db686..547db686 100755..100644
--- a/vstf/vstf/controller/reporters/report/__init__.py
+++ b/vstf/vstf/controller/reporters/report/__init__.py
diff --git a/vstf/vstf/controller/reporters/report/candy_generator.py b/vstf/vstf/controller/reporters/report/candy_generator.py
index ea296550..ea296550 100755..100644
--- a/vstf/vstf/controller/reporters/report/candy_generator.py
+++ b/vstf/vstf/controller/reporters/report/candy_generator.py
diff --git a/vstf/vstf/controller/reporters/report/data_factory.py b/vstf/vstf/controller/reporters/report/data_factory.py
index f9fc69d9..f9fc69d9 100755..100644
--- a/vstf/vstf/controller/reporters/report/data_factory.py
+++ b/vstf/vstf/controller/reporters/report/data_factory.py
diff --git a/vstf/vstf/controller/reporters/report/html/__init__.py b/vstf/vstf/controller/reporters/report/html/__init__.py
index df7d24d0..df7d24d0 100755..100644
--- a/vstf/vstf/controller/reporters/report/html/__init__.py
+++ b/vstf/vstf/controller/reporters/report/html/__init__.py
diff --git a/vstf/vstf/controller/reporters/report/html/html_base.py b/vstf/vstf/controller/reporters/report/html/html_base.py
index 36be5981..5769da79 100755..100644
--- a/vstf/vstf/controller/reporters/report/html/html_base.py
+++ b/vstf/vstf/controller/reporters/report/html/html_base.py
@@ -7,7 +7,6 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-__version__ = ''' '''
import os
import vstf.common.pyhtml as pyhtm
diff --git a/vstf/vstf/controller/reporters/report/html/htmlcreator.py b/vstf/vstf/controller/reporters/report/html/htmlcreator.py
index 1d150e28..695ea37f 100755..100644
--- a/vstf/vstf/controller/reporters/report/html/htmlcreator.py
+++ b/vstf/vstf/controller/reporters/report/html/htmlcreator.py
@@ -7,7 +7,6 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-__version__ = ''' '''
import logging
diff --git a/vstf/vstf/controller/reporters/report/pdf/__init__.py b/vstf/vstf/controller/reporters/report/pdf/__init__.py
index df7d24d0..df7d24d0 100755..100644
--- a/vstf/vstf/controller/reporters/report/pdf/__init__.py
+++ b/vstf/vstf/controller/reporters/report/pdf/__init__.py
diff --git a/vstf/vstf/controller/reporters/report/pdf/element.py b/vstf/vstf/controller/reporters/report/pdf/element.py
index 78d1c59b..ef8b54df 100755..100644
--- a/vstf/vstf/controller/reporters/report/pdf/element.py
+++ b/vstf/vstf/controller/reporters/report/pdf/element.py
@@ -7,7 +7,7 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-__version__ = ''' '''
+
__doc__ = """
it contains the base element for pdf
eImage is used to draw picture on the pdf document
diff --git a/vstf/vstf/controller/reporters/report/pdf/pdfcreator.py b/vstf/vstf/controller/reporters/report/pdf/pdfcreator.py
index 4f7bd2a8..c33974ec 100755..100644
--- a/vstf/vstf/controller/reporters/report/pdf/pdfcreator.py
+++ b/vstf/vstf/controller/reporters/report/pdf/pdfcreator.py
@@ -7,8 +7,6 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-__version__ = ''' '''
-
from vstf.controller.reporters.report.pdf.pdftemplate import PdfVswitch
from vstf.controller.reporters.report.pdf.story import TitleStory, SpaceStory, ImageStory, TableStory, \
diff --git a/vstf/vstf/controller/reporters/report/pdf/pdftemplate.py b/vstf/vstf/controller/reporters/report/pdf/pdftemplate.py
index 69c65401..69c65401 100755..100644
--- a/vstf/vstf/controller/reporters/report/pdf/pdftemplate.py
+++ b/vstf/vstf/controller/reporters/report/pdf/pdftemplate.py
diff --git a/vstf/vstf/controller/reporters/report/pdf/story.py b/vstf/vstf/controller/reporters/report/pdf/story.py
index 940c20fb..940c20fb 100755..100644
--- a/vstf/vstf/controller/reporters/report/pdf/story.py
+++ b/vstf/vstf/controller/reporters/report/pdf/story.py
diff --git a/vstf/vstf/controller/reporters/report/pdf/styles.py b/vstf/vstf/controller/reporters/report/pdf/styles.py
index 2860c245..2860c245 100755..100644
--- a/vstf/vstf/controller/reporters/report/pdf/styles.py
+++ b/vstf/vstf/controller/reporters/report/pdf/styles.py
diff --git a/vstf/vstf/controller/reporters/report/provider/__init__.py b/vstf/vstf/controller/reporters/report/provider/__init__.py
index 83b8d15d..83b8d15d 100755..100644
--- a/vstf/vstf/controller/reporters/report/provider/__init__.py
+++ b/vstf/vstf/controller/reporters/report/provider/__init__.py
diff --git a/vstf/vstf/controller/reporters/report/provider/html_provider.py b/vstf/vstf/controller/reporters/report/provider/html_provider.py
index 74c4c593..74c4c593 100755..100644
--- a/vstf/vstf/controller/reporters/report/provider/html_provider.py
+++ b/vstf/vstf/controller/reporters/report/provider/html_provider.py
diff --git a/vstf/vstf/controller/reporters/report/provider/pdf_provider.py b/vstf/vstf/controller/reporters/report/provider/pdf_provider.py
index bc9f0e96..e1cb09ef 100755..100644
--- a/vstf/vstf/controller/reporters/report/provider/pdf_provider.py
+++ b/vstf/vstf/controller/reporters/report/provider/pdf_provider.py
@@ -8,8 +8,6 @@
##############################################################################
-
-__version__ = ''' '''
import logging
LOG = logging.getLogger(__name__)
diff --git a/vstf/vstf/controller/reporters/reporter.py b/vstf/vstf/controller/reporters/reporter.py
index e77ae349..654c9b83 100755..100644
--- a/vstf/vstf/controller/reporters/reporter.py
+++ b/vstf/vstf/controller/reporters/reporter.py
@@ -26,7 +26,6 @@ from vstf.controller.reporters.report.candy_generator import CandyGenerator
import vstf.common.constants as cst
-__version__ = ''' '''
LOG = logging.getLogger(__name__)