├── .DS_Store ├── .gitignore ├── README.md ├── data ├── __init__.py ├── config.ini └── config.py ├── drivers ├── IEDriverServer.exe ├── chromedriver.exe └── phantomjs.exe ├── report ├── HTMLTestRunner3.py ├── css │ └── bootstrap.min.css ├── js │ └── echarts.common.min.js ├── result.html └── screenshot │ └── test.txt ├── requirements.txt ├── run.py ├── screenshots └── vantpy2.1.jpg ├── test ├── .DS_Store ├── Autolt │ ├── test1.exe │ └── test1.jpg ├── __init__.py ├── common │ ├── BrowserDriver.py │ ├── Seleniums.py │ └── __init__.py ├── page │ ├── BaiduPage.py │ └── __init__.py ├── request │ └── token.py ├── sqlserver │ ├── __init__.py │ ├── server.py │ └── user.xlsx └── testcase │ ├── __init__.py │ ├── case_modle.py │ └── test_Baidu.py ├── utils ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-39.pyc │ └── readFile.cpython-39.pyc ├── assertion.py ├── config.py ├── generator.py ├── logger.py └── readFile.py └── vantpy2.0.emmx /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/.DS_Store -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /__pycache__ 3 | /logs 4 | /.pytest_cache -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ##
**Vantpy2.0**
2 | 3 | #### vantpy的目标 4 | - 实现web UI自动化测试 5 | - 嵌套locust集成性能测试 6 | - 实现request接口测试 7 | - 通过ssh访问数据库 8 | - fastapi编写接口api自定义测试 9 | 10 | #### 关于更新1.21 11 | 12 | Vantpy更新的内容: 13 | 1. 兼容Linux系统,mac系统,跨系统使用,多人协作 14 | 2. 删除绝对路径的读取,改为相对路径的读取 15 | 3. 加入接口测试模块 16 | 4. 集成Jenkins,测试报告采用Allure测试报告 17 | 5. 添加随机生成器,使测试用例更灵活 18 | 6. 对selenium二次开发添加新的操作 19 | 7. 实现有界面与无界面之间的切换 20 | 21 | ![](/screenshots/vantpy2.1.jpg) 22 | ------------------------------- 23 | 24 | #### demo 脚本 25 | - 把框架代码拉下来之后: `https://github.com/G2Bent/Vantpy.git` 26 | - 安装所依赖的第三方库: ` pip install requirements.txt` 27 | - 直接运行run.py文件 28 | 29 | 30 | #### 安装 31 | 32 | --- 33 | 34 | #### 关于框架: 35 | 36 | Vantpy框架基于python3+selenium+unittest搭建的WebUI自动化测试框架 37 | 38 | #### 特点: 39 | 40 | - 使用POM(页面对象模式)设计,使代码更加有逻辑性,测试脚本更加规范,后期更加容易维护以及复用性更高 41 | - 支持多种定位方式,包括(xpath/css/ID/text/link_text/name) 42 | - 框架集成了Selenium的常用定位方法,使元素定位更加方便 43 | - 使用HTMLTestRunner作为自动生成测试报告,报告更加美观,更加详细,内容更丰富 44 | - Logging日志输出,可以看到每一步做的操作 45 | 46 | #### 部署环境: 47 | 48 | - Python 3.6+:https://www.python.org/ 49 | 50 | #### 使用到的package: 51 | 52 | > pip install requirements.txt 53 | 54 | #### 支持的浏览器及驱动: 55 | 56 | 基于Selenium支持的所有浏览器 57 | 58 | ``` 59 | browser == "Chrome" 60 | browser == "firefox" 61 | browser == "IE" 62 | browser == "phantomjs" 63 | browser == "opera" 64 | browser == "edge" 65 | ``` 66 | 67 | geckodriver(Firefox):https://github.com/mozilla/geckodriver/releases 68 | 69 | Chromedriver(Chrome):https://sites.google.com/a/chromium.org/chromedriver/home 70 | 71 | IEDriverServer(IE):http://selenium-release.storage.googleapis.com/index.html 72 | 73 | operadriver(Opera):https://github.com/operasoftware/operachromiumdriver/releases 74 | 75 | MicrosoftWebDriver(Edge):https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver 76 | 77 | #### 定位元素方式: 78 | 79 | ``` 80 | class BaiduPage(BasePage): 81 | """ 82 | 在这里写定位器,通过元素属性定位元素对象 83 | """ 84 | search_loc =(By.XPATH,'//*[@id="kw"]')#定位百度文本框 85 | 86 | def input_baidu_text(self,text): 87 | self.send_key(self.search_loc,text) 88 | ``` 89 | 90 | #### 日志输出 91 | 92 | ``` 93 | 2018-06-02 14:58:13,521 - INFO - You had select Chrome browser. 94 | 2018-06-02 14:58:13,524 - INFO - The test url is: https://www.baidu.com 95 | 2018-06-02 14:58:19,629 - INFO - Starting Chrome browser. 96 | 2018-06-02 14:58:20,456 - INFO - Open url: https://www.baidu.com 97 | 2018-06-02 14:58:21,607 - INFO - Maximize the current window. 98 | 2018-06-02 14:58:21,609 - INFO - Set implicitly wait 5 seconds. 99 | 2018-06-02 14:58:21,609 - INFO - Clear input-box: //*[@id="kw"]... 100 | 2018-06-02 14:58:22,723 - INFO - Input element by xpath: //*[@id="kw"]... 101 | 2018-06-02 14:58:22,723 - INFO - Input: selenium 102 | ``` 103 | 104 | #### 生成测试报告 105 | 106 | ``` 107 | def report(): 108 | if len(sys.argv) > 1: 109 | report_name = os.path.dirname(os.getcwd()) + '\\report\\' + sys.argv[1] + '_result.html' 110 | else: 111 | now = time.strftime("%Y-%m-%d_%H_%M_%S_") 112 | # 需要查看每段时间的测试报告,可以这样写: 113 | # report_name = os.getcwd() + '\\report\\'+now+'result.html' 114 | report_name = os.path.dirname(os.getcwd()) + '\\report\\result.html' 115 | return report_name 116 | 117 | fp = open(report(), 'wb') 118 | Runner = HTMLTestRunner( 119 | stream=fp, 120 | title='测试报告', 121 | description='测试用例执行情况' 122 | ) 123 | ``` 124 | 125 | #### 测试报告 126 | 127 | ![自动化测试报告](https://upload-images.jianshu.io/upload_images/3404835-b27828973a200528.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) 128 | 129 | 130 | -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | -------------------------------------------------------------------------------- /data/config.ini: -------------------------------------------------------------------------------- 1 | [browserType] 2 | browserName = Firefox 3 | 4 | [ptahUrl] 5 | URL=https://www.baidu.com -------------------------------------------------------------------------------- /data/config.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | ------------------------------------------------- 4 | File Name: config 5 | Description : 6 | Author : vant 7 | date: 2021/5/26 8 | ------------------------------------------------- 9 | Change Activity: 10 | 2022/5/09: 11 | ------------------------------------------------- 12 | """ 13 | __author__ = 'vant' 14 | 15 | import configparser 16 | import os 17 | 18 | 19 | class Config: 20 | def __init__(self): 21 | BASE_PATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0] 22 | CONFIG_FILE = os.path.join(BASE_PATH, 'data', 'config.ini') 23 | self.config = configparser.ConfigParser() 24 | self.config.read(CONFIG_FILE) 25 | 26 | def get(self, filename, key): 27 | conf = self.config.get(filename, key) 28 | return conf 29 | 30 | def path(self): 31 | BASE_PATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0] 32 | return BASE_PATH 33 | 34 | 35 | if __name__ == '__main__': 36 | c = Config() 37 | print(c.path()) 38 | # print(c.get('browserType','browserName')) 39 | -------------------------------------------------------------------------------- /drivers/IEDriverServer.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/drivers/IEDriverServer.exe -------------------------------------------------------------------------------- /drivers/chromedriver.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/drivers/chromedriver.exe -------------------------------------------------------------------------------- /drivers/phantomjs.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/drivers/phantomjs.exe -------------------------------------------------------------------------------- /report/HTMLTestRunner3.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | A TestRunner for use with the Python unit testing framework. It 4 | generates a HTML report to show the result at a glance. 5 | 6 | The simplest way to use this is to invoke its main method. E.g. 7 | 8 | import unittest 9 | import HTMLTestRunner 10 | 11 | ... define your tests ... 12 | 13 | if __name__ == '__main__': 14 | HTMLTestRunner.main() 15 | 16 | 17 | For more customization options, instantiates a HTMLTestRunner object. 18 | HTMLTestRunner is a counterpart to unittest's TextTestRunner. E.g. 19 | 20 | # output to a file 21 | fp = file('my_report.html', 'wb') 22 | runner = HTMLTestRunner.HTMLTestRunner( 23 | stream=fp, 24 | title='My unit test', 25 | description='This demonstrates the report output by HTMLTestRunner.' 26 | ) 27 | 28 | # Use an external stylesheet. 29 | # See the Template_mixin class for more customizable options 30 | runner.STYLESHEET_TMPL = '' 31 | 32 | # run the test 33 | runner.run(my_test_suite) 34 | 35 | 36 | ------------------------------------------------------------------------ 37 | Copyright (c) 2004-2007, Wai Yip Tung 38 | All rights reserved. 39 | 40 | Redistribution and use in source and binary forms, with or without 41 | modification, are permitted provided that the following conditions are 42 | met: 43 | 44 | * Redistributions of source code must retain the above copyright notice, 45 | this list of conditions and the following disclaimer. 46 | * Redistributions in binary form must reproduce the above copyright 47 | notice, this list of conditions and the following disclaimer in the 48 | documentation and/or other materials provided with the distribution. 49 | * Neither the name Wai Yip Tung nor the names of its contributors may be 50 | used to endorse or promote products derived from this software without 51 | specific prior written permission. 52 | 53 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 54 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 55 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 56 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 57 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 58 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 59 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 60 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 61 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 62 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 63 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 64 | """ 65 | 66 | # URL: http://tungwaiyip.info/software/HTMLTestRunner.html 67 | 68 | __author__ = "Wai Yip Tung" 69 | __version__ = "0.9.1" 70 | 71 | """ 72 | Change History 73 | Version 0.9.1 74 | * 用Echarts添加执行情况统计图 (灰蓝) 75 | 76 | Version 0.9.0 77 | * 改成Python 3.x (灰蓝) 78 | 79 | Version 0.8.3 80 | * 使用 Bootstrap稍加美化 (灰蓝) 81 | * 改为中文 (灰蓝) 82 | 83 | Version 0.8.2 84 | * Show output inline instead of popup window (Viorel Lupu). 85 | 86 | Version in 0.8.1 87 | * Validated XHTML (Wolfgang Borgert). 88 | * Added description of test classes and test cases. 89 | 90 | Version in 0.8.0 91 | * Define Template_mixin class for customization. 92 | * Workaround a IE 6 bug that it does not treat 205 | 206 | 207 | 301 | 302 |
303 | %(heading)s 304 | %(report)s 305 | %(ending)s 306 | %(chart_script)s 307 |
308 | 309 | 310 | """ # variables: (title, generator, stylesheet, heading, report, ending, chart_script) 311 | 312 | ECHARTS_SCRIPT = """ 313 | 357 | """ # variables: (Pass, fail, error) 358 | 359 | # ------------------------------------------------------------------------ 360 | # Stylesheet 361 | # 362 | # alternatively use a for external style sheet, e.g. 363 | # 364 | 365 | STYLESHEET_TMPL = """ 366 | 452 | """ 453 | 454 | # ------------------------------------------------------------------------ 455 | # Heading 456 | # 457 | 458 | HEADING_TMPL = """ 459 | 463 |

%(description)s

464 |
465 | """ # variables: (title, parameters, description) 466 | 467 | HEADING_ATTRIBUTE_TMPL = """

%(name)s: %(value)s

468 | """ # variables: (name, value) 469 | 470 | # ------------------------------------------------------------------------ 471 | # Report 472 | # 473 | 474 | REPORT_TMPL = u""" 475 |
476 | 477 | 478 | 479 |
480 |

481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | %(test_list)s 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 |
测试套件/测试用例总数通过失败错误查看
总计%(count)s%(Pass)s%(fail)s%(error)s 
508 | """ # variables: (test_list, count, Pass, fail, error) 509 | 510 | REPORT_CLASS_TMPL = u""" 511 | 512 | %(desc)s 513 | %(count)s 514 | %(Pass)s 515 | %(fail)s 516 | %(error)s 517 | 详情 518 | 519 | """ # variables: (style, desc, count, Pass, fail, error, cid) 520 | 521 | REPORT_TEST_WITH_OUTPUT_TMPL = r""" 522 | 523 |
%(desc)s
524 | 525 | 526 | 527 | 528 | %(status)s 529 | 530 | 535 | 536 | 537 | 538 | 539 | """ # variables: (tid, Class, style, desc, status) 540 | 541 | REPORT_TEST_NO_OUTPUT_TMPL = r""" 542 | 543 |
%(desc)s
544 | %(status)s 545 | 546 | """ # variables: (tid, Class, style, desc, status) 547 | 548 | REPORT_TEST_OUTPUT_TMPL = r"""%(id)s: %(output)s""" # variables: (id, output) 549 | 550 | # ------------------------------------------------------------------------ 551 | # ENDING 552 | # 553 | 554 | ENDING_TMPL = """
 
""" 555 | 556 | # -------------------- The end of the Template class ------------------- 557 | 558 | 559 | TestResult = unittest.TestResult 560 | 561 | 562 | class _TestResult(TestResult): 563 | # note: _TestResult is a pure representation of results. 564 | # It lacks the output and reporting ability compares to unittest._TextTestResult. 565 | 566 | def __init__(self, verbosity=1): 567 | TestResult.__init__(self) 568 | self.stdout0 = None 569 | self.stderr0 = None 570 | self.success_count = 0 571 | self.failure_count = 0 572 | self.error_count = 0 573 | self.verbosity = verbosity 574 | 575 | # result is a list of result in 4 tuple 576 | # ( 577 | # result code (0: success; 1: fail; 2: error), 578 | # TestCase object, 579 | # Test output (byte string), 580 | # stack trace, 581 | # ) 582 | self.result = [] 583 | self.subtestlist = [] 584 | 585 | def startTest(self, test): 586 | TestResult.startTest(self, test) 587 | # just one buffer for both stdout and stderr 588 | self.outputBuffer = io.StringIO() 589 | stdout_redirector.fp = self.outputBuffer 590 | stderr_redirector.fp = self.outputBuffer 591 | self.stdout0 = sys.stdout 592 | self.stderr0 = sys.stderr 593 | sys.stdout = stdout_redirector 594 | sys.stderr = stderr_redirector 595 | 596 | def complete_output(self): 597 | """ 598 | Disconnect output redirection and return buffer. 599 | Safe to call multiple times. 600 | """ 601 | if self.stdout0: 602 | sys.stdout = self.stdout0 603 | sys.stderr = self.stderr0 604 | self.stdout0 = None 605 | self.stderr0 = None 606 | return self.outputBuffer.getvalue() 607 | 608 | def stopTest(self, test): 609 | # Usually one of addSuccess, addError or addFailure would have been called. 610 | # But there are some path in unittest that would bypass this. 611 | # We must disconnect stdout in stopTest(), which is guaranteed to be called. 612 | self.complete_output() 613 | 614 | def addSuccess(self, test): 615 | if test not in self.subtestlist: 616 | self.success_count += 1 617 | TestResult.addSuccess(self, test) 618 | output = self.complete_output() 619 | self.result.append((0, test, output, '')) 620 | if self.verbosity > 1: 621 | sys.stderr.write('ok ') 622 | sys.stderr.write(str(test)) 623 | sys.stderr.write('\n') 624 | else: 625 | sys.stderr.write('.') 626 | 627 | def addError(self, test, err): 628 | self.error_count += 1 629 | TestResult.addError(self, test, err) 630 | _, _exc_str = self.errors[-1] 631 | output = self.complete_output() 632 | self.result.append((2, test, output, _exc_str)) 633 | if self.verbosity > 1: 634 | sys.stderr.write('E ') 635 | sys.stderr.write(str(test)) 636 | sys.stderr.write('\n') 637 | else: 638 | sys.stderr.write('E') 639 | 640 | def addFailure(self, test, err): 641 | self.failure_count += 1 642 | TestResult.addFailure(self, test, err) 643 | _, _exc_str = self.failures[-1] 644 | output = self.complete_output() 645 | self.result.append((1, test, output, _exc_str)) 646 | if self.verbosity > 1: 647 | sys.stderr.write('F ') 648 | sys.stderr.write(str(test)) 649 | sys.stderr.write('\n') 650 | else: 651 | sys.stderr.write('F') 652 | 653 | def addSubTest(self, test, subtest, err): 654 | if err is not None: 655 | if getattr(self, 'failfast', False): 656 | self.stop() 657 | if issubclass(err[0], test.failureException): 658 | self.failure_count += 1 659 | errors = self.failures 660 | errors.append((subtest, self._exc_info_to_string(err, subtest))) 661 | output = self.complete_output() 662 | self.result.append((1, test, output + '\nSubTestCase Failed:\n' + str(subtest), 663 | self._exc_info_to_string(err, subtest))) 664 | if self.verbosity > 1: 665 | sys.stderr.write('F ') 666 | sys.stderr.write(str(subtest)) 667 | sys.stderr.write('\n') 668 | else: 669 | sys.stderr.write('F') 670 | else: 671 | self.error_count += 1 672 | errors = self.errors 673 | errors.append((subtest, self._exc_info_to_string(err, subtest))) 674 | output = self.complete_output() 675 | self.result.append( 676 | (2, test, output + '\nSubTestCase Error:\n' + str(subtest), self._exc_info_to_string(err, subtest))) 677 | if self.verbosity > 1: 678 | sys.stderr.write('E ') 679 | sys.stderr.write(str(subtest)) 680 | sys.stderr.write('\n') 681 | else: 682 | sys.stderr.write('E') 683 | self._mirrorOutput = True 684 | else: 685 | self.subtestlist.append(subtest) 686 | self.subtestlist.append(test) 687 | self.success_count += 1 688 | output = self.complete_output() 689 | self.result.append((0, test, output + '\nSubTestCase Pass:\n' + str(subtest), '')) 690 | if self.verbosity > 1: 691 | sys.stderr.write('ok ') 692 | sys.stderr.write(str(subtest)) 693 | sys.stderr.write('\n') 694 | else: 695 | sys.stderr.write('.') 696 | 697 | 698 | class HTMLTestRunner(Template_mixin): 699 | 700 | def __init__(self, stream=sys.stdout, verbosity=1, title=None, description=None): 701 | self.stream = stream 702 | self.verbosity = verbosity 703 | if title is None: 704 | self.title = self.DEFAULT_TITLE 705 | else: 706 | self.title = title 707 | if description is None: 708 | self.description = self.DEFAULT_DESCRIPTION 709 | else: 710 | self.description = description 711 | 712 | self.startTime = datetime.datetime.now() 713 | 714 | def run(self, test): 715 | "Run the given test testcase or test suite." 716 | result = _TestResult(self.verbosity) 717 | test(result) 718 | self.stopTime = datetime.datetime.now() 719 | self.generateReport(test, result) 720 | print('\nTime Elapsed: %s' % (self.stopTime-self.startTime), file=sys.stderr) 721 | return result 722 | 723 | def sortResult(self, result_list): 724 | # unittest does not seems to run in any particular order. 725 | # Here at least we want to group them together by class. 726 | rmap = {} 727 | classes = [] 728 | for n,t,o,e in result_list: 729 | cls = t.__class__ 730 | if cls not in rmap: 731 | rmap[cls] = [] 732 | classes.append(cls) 733 | rmap[cls].append((n,t,o,e)) 734 | r = [(cls, rmap[cls]) for cls in classes] 735 | return r 736 | 737 | def getReportAttributes(self, result): 738 | """ 739 | Return report attributes as a list of (name, value). 740 | Override this to add custom attributes. 741 | """ 742 | startTime = str(self.startTime)[:19] 743 | duration = str(self.stopTime - self.startTime) 744 | status = [] 745 | if result.success_count: status.append(u'通过 %s' % result.success_count) 746 | if result.failure_count: status.append(u'失败 %s' % result.failure_count) 747 | if result.error_count: status.append(u'错误 %s' % result.error_count ) 748 | if status: 749 | status = ' '.join(status) 750 | else: 751 | status = 'none' 752 | return [ 753 | (u'开始时间', startTime), 754 | (u'运行时长', duration), 755 | (u'状态', status), 756 | ] 757 | 758 | def generateReport(self, test, result): 759 | report_attrs = self.getReportAttributes(result) 760 | generator = 'HTMLTestRunner %s' % __version__ 761 | stylesheet = self._generate_stylesheet() 762 | heading = self._generate_heading(report_attrs) 763 | report = self._generate_report(result) 764 | ending = self._generate_ending() 765 | chart = self._generate_chart(result) 766 | output = self.HTML_TMPL % dict( 767 | title = saxutils.escape(self.title), 768 | generator = generator, 769 | stylesheet = stylesheet, 770 | heading = heading, 771 | report = report, 772 | ending = ending, 773 | chart_script = chart 774 | ) 775 | self.stream.write(output.encode('utf8')) 776 | 777 | def _generate_stylesheet(self): 778 | return self.STYLESHEET_TMPL 779 | 780 | def _generate_heading(self, report_attrs): 781 | a_lines = [] 782 | for name, value in report_attrs: 783 | line = self.HEADING_ATTRIBUTE_TMPL % dict( 784 | name = saxutils.escape(name), 785 | value = saxutils.escape(value), 786 | ) 787 | a_lines.append(line) 788 | heading = self.HEADING_TMPL % dict( 789 | title = saxutils.escape(self.title), 790 | parameters = ''.join(a_lines), 791 | description = saxutils.escape(self.description), 792 | ) 793 | return heading 794 | 795 | def _generate_report(self, result): 796 | rows = [] 797 | sortedResult = self.sortResult(result.result) 798 | for cid, (cls, cls_results) in enumerate(sortedResult): 799 | # subtotal for a class 800 | np = nf = ne = 0 801 | for n,t,o,e in cls_results: 802 | if n == 0: np += 1 803 | elif n == 1: nf += 1 804 | else: ne += 1 805 | 806 | # format class description 807 | if cls.__module__ == "__main__": 808 | name = cls.__name__ 809 | else: 810 | name = "%s.%s" % (cls.__module__, cls.__name__) 811 | doc = cls.__doc__ and cls.__doc__.split("\n")[0] or "" 812 | desc = doc and '%s: %s' % (name, doc) or name 813 | 814 | row = self.REPORT_CLASS_TMPL % dict( 815 | style = ne > 0 and 'errorClass' or nf > 0 and 'failClass' or 'passClass', 816 | desc = desc, 817 | count = np+nf+ne, 818 | Pass = np, 819 | fail = nf, 820 | error = ne, 821 | cid = 'c%s' % (cid+1), 822 | ) 823 | rows.append(row) 824 | 825 | for tid, (n,t,o,e) in enumerate(cls_results): 826 | self._generate_report_test(rows, cid, tid, n, t, o, e) 827 | 828 | report = self.REPORT_TMPL % dict( 829 | test_list = ''.join(rows), 830 | count = str(result.success_count+result.failure_count+result.error_count), 831 | Pass = str(result.success_count), 832 | fail = str(result.failure_count), 833 | error = str(result.error_count), 834 | ) 835 | return report 836 | 837 | def _generate_chart(self, result): 838 | chart = self.ECHARTS_SCRIPT % dict( 839 | Pass=str(result.success_count), 840 | fail=str(result.failure_count), 841 | error=str(result.error_count), 842 | ) 843 | return chart 844 | 845 | def _generate_report_test(self, rows, cid, tid, n, t, o, e): 846 | # e.g. 'pt1.1', 'ft1.1', etc 847 | has_output = bool(o or e) 848 | tid = (n == 0 and 'p' or 'f') + 't%s.%s' % (cid+1,tid+1) 849 | name = t.id().split('.')[-1] 850 | doc = t.shortDescription() or "" 851 | desc = doc and ('%s: %s' % (name, doc)) or name 852 | tmpl = has_output and self.REPORT_TEST_WITH_OUTPUT_TMPL or self.REPORT_TEST_NO_OUTPUT_TMPL 853 | 854 | script = self.REPORT_TEST_OUTPUT_TMPL % dict( 855 | id=tid, 856 | output=saxutils.escape(o+e), 857 | ) 858 | 859 | row = tmpl % dict( 860 | tid=tid, 861 | Class=(n == 0 and 'hiddenRow' or 'none'), 862 | style=(n == 2 and 'errorCase' or (n == 1 and 'failCase' or 'none')), 863 | desc=desc, 864 | script=script, 865 | status=self.STATUS[n], 866 | ) 867 | rows.append(row) 868 | if not has_output: 869 | return 870 | 871 | def _generate_ending(self): 872 | return self.ENDING_TMPL 873 | 874 | 875 | ############################################################################## 876 | # Facilities for running tests from the command line 877 | ############################################################################## 878 | 879 | # Note: Reuse unittest.TestProgram to launch test. In the future we may 880 | # build our own launcher to support more specific command line 881 | # parameters like test title, CSS, etc. 882 | class TestProgram(unittest.TestProgram): 883 | """ 884 | A variation of the unittest.TestProgram. Please refer to the base 885 | class for command line parameters. 886 | """ 887 | def runTests(self): 888 | # Pick HTMLTestRunner as the default test runner. 889 | # base class's testRunner parameter is not useful because it means 890 | # we have to instantiate HTMLTestRunner before we know self.verbosity. 891 | if self.testRunner is None: 892 | self.testRunner = HTMLTestRunner(verbosity=self.verbosity) 893 | unittest.TestProgram.runTests(self) 894 | 895 | main = TestProgram 896 | 897 | ############################################################################## 898 | # Executing this module from the command line 899 | ############################################################################## 900 | 901 | if __name__ == "__main__": 902 | main(module=None) 903 | -------------------------------------------------------------------------------- /report/css/bootstrap.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.7 (http://getbootstrap.com) 3 | * Copyright 2011-2016 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} 6 | /*# sourceMappingURL=bootstrap.min.css.map */ -------------------------------------------------------------------------------- /report/result.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 测试报告 6 | 7 | 8 | 9 | 10 | 11 | 12 | 35 | 36 | 37 | 38 | 123 |
124 |

测试报告

125 |

测试人员 : QAHE

126 |

开始时间 : 2018-12-24 18:14:16

127 |

合计耗时 : 0:01:14.232759

128 |

测试结果 : 共 1,通过 1,通过率= 100.00%

129 | 130 |

测试用例执行情况

131 |
132 | 133 | 134 | 135 |

136 | 概要{ 100.00% } 137 | 失败{ 0 } 138 | 通过{ 1 } 139 | 所有{ 1 } 140 |

141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 |
用例集/测试用例总计通过失败错误详细
test_login.TestLogin1100详细
test_login_success
通过
总计1100通过率:100.00%
182 | 183 |
 
184 |
185 |
187 | 188 | 189 | 190 | 191 | -------------------------------------------------------------------------------- /report/screenshot/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/report/screenshot/test.txt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | PyMySQL==0.9.3 2 | pytest == 3.5.0 3 | pymongo == 3.6.1 4 | selenium == 3.11.0 5 | pytest-allure-adaptor == 1.7.10 6 | faker == 1.0.1 7 | xlrd == 1.1.0 8 | pytest-html == 1.19.0 9 | pandas == 0.23.4 10 | tomorrow == 0.2.4 -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | import os 4 | import sys 5 | import time 6 | import unittest 7 | import sys 8 | sys.path.append('../') 9 | from report.HTMLTestRunner3 import HTMLTestRunner 10 | 11 | def create_suite(): 12 | TestSuite = unittest.TestSuite() # 测试集 13 | test_dir = './test/testcase' 14 | # print(test_dir) 15 | 16 | discover = unittest.defaultTestLoader.discover( 17 | start_dir=test_dir, 18 | pattern='test_login.py', 19 | top_level_dir=None 20 | ) 21 | 22 | for test_case in discover: 23 | TestSuite.addTests(test_case) 24 | # print(test_case) 25 | return TestSuite 26 | 27 | def report(): 28 | if len(sys.argv) > 1: 29 | report_name = os.path.dirname(os.getcwd()) + '\\report\\' + sys.argv[1] + '_result.html' 30 | print(report_name) 31 | else: 32 | now = time.strftime("%Y-%m-%d_%H_%M_%S_") 33 | # 需要查看每段时间的测试报告,可以这样写: 34 | # report_name = os.getcwd() + '\\report\\'+now+'result.html' 35 | report_name = './report/result.html' 36 | print(report_name) 37 | return report_name 38 | 39 | 40 | 41 | if __name__ == '__main__': 42 | TestSuite = create_suite() 43 | fp = open(report(), 'wb') 44 | Runner = HTMLTestRunner( 45 | stream=fp, 46 | title='测试报告', 47 | description='测试用例执行情况' 48 | ) 49 | Runner.run(TestSuite) 50 | fp.close() 51 | 52 | -------------------------------------------------------------------------------- /screenshots/vantpy2.1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/screenshots/vantpy2.1.jpg -------------------------------------------------------------------------------- /test/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/test/.DS_Store -------------------------------------------------------------------------------- /test/Autolt/test1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/test/Autolt/test1.exe -------------------------------------------------------------------------------- /test/Autolt/test1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/test/Autolt/test1.jpg -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | -------------------------------------------------------------------------------- /test/common/BrowserDriver.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | # -*- coding: utf-8 -*- 3 | # @Author : Vant 4 | # @Email : 944921374@qq.com 5 | 6 | from selenium import webdriver 7 | from utils.logger import Logger 8 | from selenium.webdriver.chrome.options import Options 9 | from data.config import Config 10 | 11 | logger = Logger(logger="BrowserDriver").getlog() 12 | 13 | class BrowserDriver(object): 14 | path = './drivers/'#这是获取相对路径的方法 15 | chrome_driver_path = path + 'chromedriver.exe' 16 | ie_driver_path = path + '/driver/IEDriverServer.exe' 17 | 18 | def __init__(self,driver): 19 | self.driver = driver 20 | self.c = Config() 21 | 22 | def openbrowser(self,driver): 23 | browser = self.c.get("browserType","browserName") 24 | logger.info("选择的浏览器为: %s 浏览器" % browser) 25 | url = self.c.get('ptahUrl',"URL") 26 | logger.info("打开的URL为: %s" % url) 27 | if browser == "Firefox": 28 | driver = webdriver.Firefox() 29 | logger.info("启动火狐浏览器") 30 | else: 31 | chrome_options = Options() 32 | chrome_options.add_argument('--no-sandbox') # 解决DevToolsActivePort文件不存在的报错 33 | chrome_options.add_argument('--start-maximized') # 指定浏览器分辨率 34 | chrome_options.add_argument('--disable-gpu') # 谷歌文档提到需要加上这个属性来规避bug 35 | chrome_options.add_argument('--hide-scrollbars') # 隐藏滚动条, 应对一些特殊页面 36 | # chrome_options.add_argument('blink-settings=imagesEnabled=false') # 不加载图片, 提升速度 37 | chrome_options.add_argument('--headless') # 浏览器不提供可视化页面. linux下如果系统不支持可视化不加这条会启动失败 38 | chrome_options.add_argument('--disable-extensions') 39 | chrome_options.add_argument('lang=zh_CN.UTF-8') 40 | driver = webdriver.Chrome(options=chrome_options) 41 | 42 | # driver = webdriver.Chrome(self.c.driver_ptah()) #用于Windows系统加载驱动使用 43 | 44 | # driver = webdriver.Chrome() #用于linux系统加载驱动使用 45 | logger.info("启动谷歌浏览器") 46 | 47 | driver.get(url) 48 | logger.info("打开URL: %s" % url) 49 | driver.maximize_window() 50 | logger.info("全屏当前窗口") 51 | driver.implicitly_wait(5) 52 | logger.info("设置5秒隐式等待时间") 53 | return driver 54 | 55 | def quit_browser(self): 56 | logger.info("关闭浏览器") 57 | self.driver.quit() 58 | 59 | -------------------------------------------------------------------------------- /test/common/Seleniums.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | # -*- coding: utf-8 -*- 3 | # @Author : Vant 4 | # @Email : 944921374@qq.com 5 | 6 | from selenium.webdriver.common.action_chains import ActionChains 7 | from selenium.webdriver.support.select import Select 8 | from selenium.common.exceptions import * # 导入所有的异常类 9 | from selenium.webdriver.support import expected_conditions as EC 10 | from selenium.webdriver.support.ui import WebDriverWait 11 | from utils.logger import Logger 12 | import time 13 | from data.config import Config 14 | 15 | # create a logger instance 16 | logger = Logger(logger='BasePage').getlog() 17 | 18 | 19 | class BasePage(object): 20 | 21 | def __init__(self, driver): 22 | """ 23 | :param driver:打开浏览器驱动 24 | """ 25 | self.driver = driver 26 | self.conf = Config() 27 | 28 | def get_page_title(self): 29 | logger.info("当前页面的title为: %s" % self.driver.title) 30 | return self.driver.title 31 | 32 | def find_element(self, *loc): 33 | try: 34 | # 元素可见时,返回查找到的元素;以下入参为元组的元素,需要加* 35 | WebDriverWait(self.driver, 30).until(lambda driver: driver.find_element(*loc).is_displayed()) 36 | return self.driver.find_element(*loc) 37 | except NoSuchElementException: 38 | logger.warning('找不到定位元素: %s' % loc[1]) 39 | raise 40 | except TimeoutException: 41 | logger.warning('查找元素超时: %s' % loc[1]) 42 | raise 43 | 44 | def find_elements(self, *loc): 45 | try: 46 | # 元素可见时,返回查找到的元素;以下入参为元组的元素,需要加* 47 | WebDriverWait(self.driver, 30).until(lambda driver: driver.find_elements(*loc).is_displayed()) 48 | return self.driver.find_elements(*loc) 49 | except NoSuchElementException: 50 | logger.warning('找不到定位元素: %s' % loc[1]) 51 | raise 52 | except TimeoutException: 53 | logger.warning('查找元素超时: %s' % loc[1]) 54 | raise 55 | 56 | def get_screent_img(self, value): 57 | """将页面截图下来""" 58 | file_path = './report/screenshot/' 59 | image_path = self.conf.path() 60 | now = time.strftime("%Y-%m-%d_%H_%M_%S_") 61 | screen_name = image_path + value + '.png' 62 | try: 63 | self.driver.get_screenshot_as_file(screen_name) 64 | logger.info("页面已截图,截图的路径在项目: %s " % image_path) 65 | except NameError as ne: 66 | logger.error("失败截图 %s" % ne) 67 | self.get_screent_img(value) 68 | 69 | def send_key(self, loc, text): 70 | logger.info('清空文本框内容: %s...' % loc[1]) 71 | self.find_element(*loc).clear() 72 | time.sleep(1) 73 | logger.info('输入内容方式 by %s: %s...' % (loc[0], loc[1])) 74 | logger.info('输入内容: %s' % text) 75 | try: 76 | self.find_element(*loc).send_keys(text) 77 | time.sleep(2) 78 | except Exception as e: 79 | logger.error("输入内容失败 %s" % e) 80 | self.get_screent_img(text) 81 | 82 | def click(self, loc): 83 | logger.info('点击元素 by %s: %s...' % (loc[0], loc[1])) 84 | try: 85 | self.find_element(*loc).click() 86 | time.sleep(2) 87 | except AttributeError as e: 88 | logger.error("无法点击元素: %s" % e) 89 | raise 90 | 91 | def clear(self, loc): 92 | """输入文本框清空操作""" 93 | element = self.find_element(*loc) 94 | try: 95 | element.clear() 96 | logger.info('清空文本框内容') 97 | except NameError as ne: 98 | logger.error("清空文本框内容失败: %s" % ne) 99 | self.get_screent_img(ne) 100 | 101 | def move_to_element(self, loc): 102 | """ 103 | 鼠标悬停操作 104 | Usage: 105 | element = ("id","xxx") 106 | driver.move_to_element(element) 107 | """ 108 | element = self.find_element(*loc) 109 | ActionChains(self.driver).move_to_element(element).perform() 110 | 111 | def back(self): 112 | """ 113 | 浏览器返回窗口 114 | """ 115 | self.driver.back() 116 | logger.info('返回上一个页面') 117 | 118 | def forward(self): 119 | """ 120 | 浏览器前进下一个窗口 121 | """ 122 | self.driver.forward() 123 | logger.info('前进到下一个页面') 124 | 125 | def wait(self, seconds): 126 | self.driver.implicitly_wait(seconds) 127 | logger.info("等待 %d 秒" % seconds) 128 | 129 | def close(self): 130 | """ 131 | 关闭浏览器 132 | """ 133 | try: 134 | self.driver.close() 135 | logger.info('关闭浏览器窗口') 136 | except NameError as ne: 137 | logger.error("关闭浏览器窗口失败 %s" % ne) 138 | 139 | def quit(self): 140 | """ 141 | 退出浏览器 142 | """ 143 | self.driver.quit() 144 | 145 | def get_title(self): 146 | """获取title""" 147 | return self.driver.title 148 | 149 | def get_text(self, loc): 150 | """获取文本""" 151 | element = self.find_element(*loc) 152 | return element.text 153 | 154 | def get_attribute(self, loc, name): 155 | """获取属性""" 156 | element = self.find_element(*loc) 157 | return element.get_attribute(name) 158 | 159 | def js_execute(self, js): 160 | """执行js""" 161 | return self.driver.execute_script(js) 162 | 163 | def js_focus_element(self, loc): 164 | """聚焦元素""" 165 | target = self.find_element(*loc) 166 | self.driver.execute_script("arguments[0].scrollIntoView();", target) 167 | 168 | def js_scroll_top(self): 169 | """滚动到顶部""" 170 | js = "window.scrollTo(0,0)" 171 | self.driver.execute_script(js) 172 | 173 | def js_scroll_end(self): 174 | """滚动到底部""" 175 | js = "window.scrollTo(0,document.body.scrollHeight)" 176 | self.driver.execute_script(js) 177 | 178 | def select_by_index(self, loc, index): 179 | """通过索引,index是索引第几个,从0开始""" 180 | element = self.find_element(*loc) 181 | Select(element).select_by_index(index) 182 | 183 | def select_by_value(self, loc, value): 184 | """通过value属性""" 185 | element = self.find_element(*loc) 186 | Select(element).select_by_value(value) 187 | 188 | def select_by_text(self, loc, text): 189 | """通过文本值定位""" 190 | element = self.find_element(*loc) 191 | Select(element).select_by_value(text) 192 | 193 | def is_text_in_element(self, loc, text, timeout=10): 194 | """判断文本在元素里,没定位到元素返回False,定位到元素返回判断结果布尔值""" 195 | try: 196 | result = WebDriverWait(self.driver, timeout, 1).until(EC.text_to_be_present_in_element(loc, text)) 197 | except TimeoutException: 198 | print("元素没有定位到:" + str(loc)) 199 | return False 200 | else: 201 | return result 202 | 203 | def is_text_in_value(self, loc, value, timeout=10): 204 | """ 205 | 判断元素的value值,没定位到元素返回false,定位到返回判断结果布尔值 206 | result = driver.text_in_element(element, text) 207 | """ 208 | try: 209 | result = WebDriverWait(self.driver, timeout, 1).until( 210 | EC.text_to_be_present_in_element_value(loc, value)) 211 | except TimeoutException: 212 | print("元素没定位到:" + str(loc)) 213 | return False 214 | else: 215 | return result 216 | 217 | def is_title(self, title, timeout=10): 218 | """判断title完全等于""" 219 | result = WebDriverWait(self.driver, timeout, 1).until(EC.title_is(title)) 220 | return result 221 | 222 | def is_title_contains(self, title, timeout=10): 223 | """判断title包含""" 224 | result = WebDriverWait(self.driver, timeout, 1).until(EC.title_contains(title)) 225 | return result 226 | 227 | def is_selected(self, loc, timeout=10): 228 | """判断元素被选中,返回布尔值,""" 229 | result = WebDriverWait(self.driver, timeout, 1).until(EC.element_located_to_be_selected(loc)) 230 | return result 231 | 232 | def is_selected_be(self, loc, selected=True, timeout=10): 233 | """判断元素的状态,selected是期望的参数true/False 234 | 返回布尔值""" 235 | result = WebDriverWait(self.driver, timeout, 1).until(EC.element_located_selection_state_to_be(loc, selected)) 236 | return result 237 | 238 | def is_alert_present(self, timeout=10): 239 | """判断页面是否有alert, 240 | 有返回alert(注意这里是返回alert,不是True) 241 | 没有返回False""" 242 | result = WebDriverWait(self.driver, timeout, 1).until(EC.alert_is_present()) 243 | return result 244 | 245 | def is_visibility(self, loc, timeout=10): 246 | """元素可见返回本身,不可见返回Fasle""" 247 | result = WebDriverWait(self.driver, timeout, 1).until(EC.visibility_of_element_located(loc)) 248 | return result 249 | 250 | def is_invisibility(self, loc, timeout=10): 251 | """元素可见返回本身,不可见返回True,没找到元素也返回True""" 252 | result = WebDriverWait(self.driver, timeout, 1).until(EC.invisibility_of_element_located(loc)) 253 | return result 254 | 255 | def is_clickable(self, loc, timeout=10): 256 | """元素可以点击is_enabled返回本身,不可点击返回Fasle""" 257 | result = WebDriverWait(self.driver, timeout, 1).until(EC.element_to_be_clickable(loc)) 258 | return result 259 | 260 | def is_located(self, loc, timeout=10): 261 | """判断元素有没被定位到(并不意味着可见),定位到返回element,没定位到返回False""" 262 | result = WebDriverWait(self.driver, timeout, 1).until(EC.presence_of_element_located(loc)) 263 | return result 264 | 265 | def click_alert(self): 266 | """操作点击弹窗""" 267 | alert = self.driver.switch_to.alert 268 | time.sleep(2) 269 | alert.accept() 270 | time.sleep(2) 271 | 272 | def alert_text(self): 273 | """返回弹窗的文本内容""" 274 | alert = self.driver.switch_to.alert() 275 | rel = alert.text() 276 | return rel 277 | -------------------------------------------------------------------------------- /test/common/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | -------------------------------------------------------------------------------- /test/page/BaiduPage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | # -*- coding: utf-8 -*- 3 | # @Author : Vant 4 | # @Email : 944921374@qq.com 5 | 6 | from selenium.webdriver.common.by import By 7 | from test.common.Seleniums import BasePage 8 | import sys 9 | 10 | sys.path.append('../') 11 | 12 | 13 | class BaiduPage(BasePage): 14 | """ 15 | 在这里写定位器,通过元素属性定位元素对象 16 | """ 17 | search_loc = (By.XPATH, '//*[@id="kw"]') # 定位百度文本框 18 | click_btn = (By.XPATH, '//*[@id="su"]') # 定位百度按钮 19 | 20 | def input_baidu_text(self, text): 21 | self.send_key(self.search_loc, text) 22 | 23 | def click_baidu_btn(self): 24 | self.click(self.click_btn) 25 | -------------------------------------------------------------------------------- /test/page/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | -------------------------------------------------------------------------------- /test/request/token.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | import requests 4 | import json 5 | from utils.config import Config 6 | 7 | 8 | class get_login_token: 9 | c = Config() 10 | username = c.get_case_data('login').get('username') 11 | password = c.get_case_data('login').get('password') 12 | p = c.get_case_data('login').get('face_url') 13 | 14 | def login_token(self): 15 | postdata = {"UserName": self.username, "PassWd": self.password, "pattern": None} 16 | headers = {'content-type': 'application/json'} 17 | r = requests.post(self.p, data=json.dumps(postdata), 18 | headers=headers) 19 | token_str = r.text 20 | token_dict = json.loads(token_str) 21 | if token_dict['stats'] == 'YES': 22 | return token_dict["access_token"] 23 | else: 24 | return False 25 | 26 | if __name__ == '__main__': 27 | c = get_login_token() 28 | print(c.login_token()) -------------------------------------------------------------------------------- /test/sqlserver/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | 4 | # start =1 5 | # while start <= 10: 6 | # #print(start) 7 | # #如果是奇数,输出 8 | # #否则不管 9 | # #(译音:谈破) 10 | # temp = start % 2 11 | # #temp是余数,余数=0,偶数,否则:奇数 12 | # if temp == 0: 13 | # print(start) 14 | # else: 15 | # pass#pass什么都不执行(必须写,不写语法报错) 16 | # start += 1 17 | # 18 | # for i in range(1,11): 19 | # resu = i%2 20 | # if resu ==0: 21 | # print(i,"是偶数") 22 | 23 | -------------------------------------------------------------------------------- /test/sqlserver/server.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | import pymysql 4 | import pandas as pd 5 | from utils.config import Config 6 | 7 | 8 | # 打开数据库 9 | class MysqlLib(object): 10 | def __init__(self, ip, user, password, db_name, charset='utf8'): 11 | try: 12 | self.ip1 = ip 13 | self.user = user 14 | self.password = password 15 | self.db_name = db_name 16 | self.char = charset 17 | 18 | self.MySQL_db = pymysql.connect( 19 | host=self.ip1, 20 | user=self.user, 21 | password=self.password, 22 | db=self.db_name, 23 | charset=self.char, 24 | ) 25 | print('连接成功') 26 | except: 27 | print('Error:connect is error') 28 | 29 | def sql_exe(self, sql): 30 | cursor = self.MySQL_db.cursor() 31 | Mysql_sql = sql 32 | try: 33 | # 執行sql語句 34 | cursor.execute(Mysql_sql) 35 | self.MySQL_db.commit() 36 | except: 37 | print("Error:unable to fetch data") 38 | self.MySQL_db.close() 39 | self.MySQL_db.close() 40 | 41 | def create_table(self, tablename): 42 | # 创建一张表 43 | cursor = self.MySQL_db.cursor() 44 | # 如果表存在就先执行删除表 45 | try: 46 | cursor.execute("DROP TABLE IF EXISTS %s" % tablename) 47 | sql = """CREATE TABLE %s( 48 | ID VARCHAR(100) NOT NULL, 49 | Name VARCHAR(30), 50 | Grade INT, 51 | AGE INT, 52 | GENDER VARCHAR(30))""" % tablename 53 | cursor.execute(sql) 54 | print("创建成功") 55 | return True 56 | except: 57 | print("创建失败") 58 | return False 59 | 60 | def into_sql(self): 61 | xl = Config().get_excel("user") 62 | df = pd.read_excel(xl, sheet_name="Sheet2") # sheetname不填默认为第一个sheet表 63 | # 开始写入数据 64 | username = df.username 65 | cardnum = df.cardnum.astype(object) 66 | age = df.age.astype(object) 67 | gender = df.gender 68 | for i in range(len(df)): 69 | sql = "INSERT INTO user(USERNAME,CARDNUM,AGE,SEX) VALUES(%s,%s,%s,%s)" 70 | values = (username[i], cardnum[i], age[i], gender[i]) 71 | cursor = self.MySQL_db.cursor() 72 | print(i, values) 73 | try: 74 | cursor.execute(sql, values) 75 | self.MySQL_db.commit() 76 | print('info success') 77 | except: 78 | print("Error: no date to into") 79 | self.MySQL_db.close() 80 | self.MySQL_db.close() 81 | 82 | def query_all_sql(self, name): 83 | cursor = self.MySQL_db.cursor() 84 | sql = "SELECT * FROM %s" % name 85 | try: 86 | cursor.execute(sql) 87 | result = cursor.fetchall() 88 | for row in result: 89 | id = row[0] 90 | username = row[1] 91 | birthday = row[2] 92 | print('id:%s,username:%s,bithday:%s' % (id, username, birthday)) 93 | except: 94 | print("Error: unable to fetch data") 95 | self.MySQL_db.close() 96 | 97 | def query_ont_sql(self, name, id): 98 | cursor = self.MySQL_db.cursor() 99 | sql = "SELECT * FROM %s WHERE s_id = %s" % (name, id) 100 | try: 101 | cursor.execute(sql) 102 | result = cursor.fetchall() 103 | for row in result: 104 | id = row[0] 105 | username = row[1] 106 | birthday = row[2] 107 | print('id:%s,username:%s,bithday:%s' % (id, username, birthday)) 108 | except: 109 | print("Error: unable to fetch data") 110 | self.MySQL_db.close() 111 | 112 | def update_sql(self, which, value, id): 113 | cursor = self.MySQL_db.cursor() 114 | sql = "UPDATE %s SET s_name ='%s' WHERE s_id=%s" % (which, value, id) 115 | try: 116 | cursor.execute(sql) 117 | self.MySQL_db.commit() 118 | print('Update success') 119 | except: 120 | print("Error:update data discover error") 121 | self.MySQL_db.rollback() 122 | self.MySQL_db.close() 123 | 124 | def del_sql(self, which, id): 125 | cursor = self.MySQL_db.cursor() 126 | sql = 'DELETE FROM %s WHERE s_id = %s' % (which, id) 127 | try: 128 | cursor.execute(sql) 129 | self.MySQL_db.commit() 130 | print('delete %s is success' % id) 131 | except: 132 | print('Error:delete is fail,please check your sql format') 133 | self.MySQL_db.rollback() 134 | self.MySQL_db.close() 135 | 136 | def alter_sql(self, which, value): 137 | cursor = self.MySQL_db.cursor() 138 | sqladd = """alter table %s add %s varchar(20) not null""" % (which, value) # 添加列 139 | sqlchange = """alter table %s change %s VARCHAR(30) not NULL """ % (which, value) # 更改列 140 | sqldrop = """alter table %s drop %s""" % (which, value) # 删除表 141 | sqlre = """alter table %s rename %s"""(which, value) # 重命名表 142 | try: 143 | cursor.execute(sqladd) 144 | self.MySQL_db.commit() 145 | except: 146 | print("add alter fail ") 147 | self.MySQL_db.rollback() 148 | self.MySQL_db.close() 149 | 150 | 151 | if __name__ == '__main__': 152 | p = ['127.0.0.1', 'root', '', 'autotest'] 153 | # test = MysqlLib(p[0], p[1], p[2], p[3]) 154 | # print(test) 155 | # print(test.into_sql()) 156 | # print(test.create_table('ch')) 157 | # print(test.query_all_sql('student')) 158 | # print(test.query_ont_sql("student",'02')) 159 | # print(test.update_sql('student','hel8o','03')) 160 | # print(test.del_sql('student','03')) 161 | # print(test.alter_sql('student','eng_name')) 162 | -------------------------------------------------------------------------------- /test/sqlserver/user.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/test/sqlserver/user.xlsx -------------------------------------------------------------------------------- /test/testcase/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/testcase/case_modle.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | import unittest 4 | from test.common.BrowserDriver import BrowserDriver 5 | 6 | class model(unittest.TestCase): 7 | @classmethod 8 | def setUpClass(cls): 9 | # username = c.get_case_data('login').get('username') 10 | # password = c.get_case_data('login').get('password') 11 | driver = BrowserDriver(cls) 12 | cls.driver = driver.openbrowser(cls) 13 | 14 | 15 | def setUp(self): 16 | pass 17 | 18 | def teardown(self): 19 | pass 20 | 21 | @classmethod 22 | def tearDownClass(cls): 23 | cls.driver.quit() -------------------------------------------------------------------------------- /test/testcase/test_Baidu.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | # -*- coding: utf-8 -*- 3 | # @Author : Vant 4 | # @Email : 944921374@qq.com 5 | 6 | import unittest 7 | import sys 8 | sys.path.append('../') 9 | from test.page.BaiduPage import BaiduPage 10 | from test.testcase.case_modle import * 11 | 12 | class BaiduCase(model): 13 | 14 | def test_baidu(self): 15 | baidu = BaiduPage(self.driver) 16 | baidu.input_baidu_text('selenium') 17 | baidu.click_baidu_btn() 18 | # baidu.get_screent_img("baidu") 19 | self.assertIn('selenium',self.driver.title) 20 | # self.assertIn("sss",self.driver.title) 21 | -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | -------------------------------------------------------------------------------- /utils/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/utils/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /utils/__pycache__/readFile.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/utils/__pycache__/readFile.cpython-39.pyc -------------------------------------------------------------------------------- /utils/assertion.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | """ 4 | 在这里添加各种自定义的断言,断言失败抛出AssertionError就OK。 5 | """ 6 | 7 | 8 | def assertHTTPCode(response, code_list=None): 9 | res_code = response.status_code 10 | if not code_list: 11 | code_list = [200] 12 | if res_code not in code_list: 13 | raise AssertionError('响应code不在列表中!') # 抛出AssertionError,unittest会自动判别为用例Failure,不是Error -------------------------------------------------------------------------------- /utils/config.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | """ 4 | 读取配置。这里配置文件用的yaml,也可用其他如XML,INI等,需在file_reader中添加相应的Reader进行处理。 5 | """ 6 | import os 7 | from utils.readFile import YamlReader 8 | 9 | # 通过当前文件的绝对路径,其父级目录一定是框架的base目录,然后确定各层的绝对路径。如果你的结构不同,可自行修改。 10 | BASE_PATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0] 11 | CONFIG_FILE = os.path.join(BASE_PATH, 'data', 'browser.yaml') 12 | print(CONFIG_FILE) 13 | # ELEMENT_PATH = os.path.join(BASE_PATH,'data','elements.yaml') 14 | # CASE_PATH = os.path.join(BASE_PATH,'data','testcase.yaml') 15 | # INTERFACE_PATH = os.path.join(BASE_PATH,'data','interface.yaml') 16 | # DATA_PATH = os.path.join(BASE_PATH, 'data') 17 | # DRIVER_PATH = os.path.join(BASE_PATH, 'drivers','chromedriver.exe') 18 | # LOG_PATH = os.path.join(BASE_PATH, 'logs') 19 | # REPORT_PATH = os.path.join(BASE_PATH, 'report') 20 | # SCREENSHOTS_PATH = os.path.join(BASE_PATH,"screenshots",'') 21 | # EXE_PATH = os.path.join(BASE_PATH,'test','Autolt','test1.jpg') 22 | # EXCEL_PATH = os.path.join(BASE_PATH,'test','sqlserver','') 23 | 24 | # ,element = ELEMENT_PATH,case_data = CASE_PATH, 25 | # interface_data = INTERFACE_PATH,chrome = DRIVER_PATH,screenshot = SCREENSHOTS_PATH, 26 | # excel = EXCEL_PATH 27 | class Config: 28 | def __init__(self, config=CONFIG_FILE): 29 | self.config = YamlReader(config).data 30 | # print(self.config) 31 | # self.elements = YamlReader(element).data 32 | # self.case_data = YamlReader(case_data).data 33 | # self.interface_data = YamlReader(interface_data).data 34 | # self.exe_ptah = EXE_PATH 35 | # self.driver_pt = chrome 36 | # self.screen_shot = screenshot 37 | # self.excel_pt = excel 38 | 39 | 40 | def get(self, element, index=0): 41 | """ 42 | yaml是可以通过'---'分节的。用YamlReader读取返回的是一个list,第一项是默认的节,如果有多个节,可以传入index来获取。 43 | 这样我们其实可以把框架相关的配置放在默认节,其他的关于项目的配置放在其他节中。可以在框架中实现多个项目的测试。 44 | """ 45 | return self.config[index].get(element) 46 | 47 | # def get_ele(self,element,index = 0): 48 | # return self.elements[index].get(element) 49 | # 50 | # def get_case_data(self,element,index = 0): 51 | # return self.case_data[index].get(element) 52 | # 53 | # def get_inter_data(self,element,index = 0): 54 | # return self.interface_data[index].get(element) 55 | # 56 | # def exe_data(self): 57 | # return self.exe_ptah 58 | # 59 | # def driver_ptah(self): 60 | # return self.driver_pt 61 | # 62 | # def screen_shot_path(self): 63 | # return self.screen_shot 64 | # 65 | # def get_excel(self,file_name): 66 | # file_pt = self.excel_pt+"%s.xlsx"%file_name 67 | # return file_pt 68 | # # 69 | if __name__ == '__main__': 70 | c = Config() 71 | print(c.get("brwserType").get("browserName")) 72 | # print(c.get_ele('URL').get('url')) 73 | # print(c.exe_data()) 74 | # print(c.screen_shot_path()) 75 | # print(c.get_excel("user")) 76 | # print(c.driver_ptah()) -------------------------------------------------------------------------------- /utils/generator.py: -------------------------------------------------------------------------------- 1 | """一些生成器方法,生成随机数,手机号,以及连续数字等""" 2 | import random 3 | from faker import Faker 4 | 5 | fake = Faker('zh_cn') 6 | 7 | def random_phone_number(): 8 | """随机手机号""" 9 | return fake.phone_number() 10 | 11 | def random_country(): 12 | '''随机国家''' 13 | return fake.country() 14 | 15 | def random_city(): 16 | '''随机城市''' 17 | return fake.city() 18 | 19 | def random_city_suffix(): 20 | '''随机县''' 21 | return fake.city_suffix() 22 | 23 | def random_address(): 24 | """随机地址""" 25 | return fake.address() 26 | 27 | def random_street_address(): 28 | '''街道''' 29 | return fake.street_address() 30 | 31 | def random_street_name(): 32 | '''街道名''' 33 | return fake.street_name() 34 | 35 | def random_postcode(): 36 | '''邮编''' 37 | return fake.postcode() 38 | 39 | def random_latitude(): 40 | '''维度''' 41 | return fake.latitude() 42 | 43 | def random_longitude(): 44 | '''经度''' 45 | return fake.longitude() 46 | 47 | def random_name(): 48 | """随机姓名""" 49 | return fake.name() 50 | 51 | def random_last_name(): 52 | '''姓''' 53 | return fake.last_name() 54 | 55 | def random_first_name(): 56 | '''名''' 57 | return fake.first_name() 58 | 59 | def random_name_male(): 60 | '''男性姓名''' 61 | return fake.name_male() 62 | 63 | def random_last_name_male(): 64 | '''男性姓''' 65 | return fake.last_name_male() 66 | 67 | def random_first_name_male(): 68 | '''男性名''' 69 | return fake.first_name_male() 70 | 71 | def random_name_female(): 72 | '''女性姓名''' 73 | return fake.name_female() 74 | 75 | def random_ean8(): 76 | '''8位条码''' 77 | return fake.ean8() 78 | 79 | def random_ean13(): 80 | '''13位条码''' 81 | return fake.ean13() 82 | 83 | def random_ean(): 84 | '''自定义位数条码,只能选8或者13''' 85 | return fake.ean(length=8) 86 | 87 | def random_company(): 88 | '''公司名''' 89 | return fake.company() 90 | 91 | def random_company_suffix(): 92 | '''公司名后缀''' 93 | return fake.company_suffix() 94 | 95 | def random_credit_card_number(): 96 | '''卡号''' 97 | return fake.credit_card_number(card_type=None) 98 | 99 | def random_credit_card_provider(): 100 | '''卡的提供者''' 101 | return fake.credit_card_provider(card_type=None) 102 | 103 | def random_credit_card_security_code(): 104 | '''卡的安全密码''' 105 | return fake.credit_card_security_code(card_type=None) 106 | 107 | def random_credit_card_expire(): 108 | '''卡的有效期''' 109 | return fake.credit_card_expire() 110 | 111 | def random_credit_card_full(): 112 | '''完整卡信息''' 113 | return fake.credit_card_full(card_type=None) 114 | 115 | def random_currency_code(): 116 | '''货币代码''' 117 | return fake.currency_code() 118 | 119 | def random_date_time(): 120 | '''随机日期时间''' 121 | return fake.date_time(tzinfo=None) 122 | 123 | def random_iso8601(): 124 | '''以iso8601标准输出的日期''' 125 | return fake.iso8601(tzinfo=None) 126 | 127 | def random_date_time_this_month(): 128 | '''本月的某个日期''' 129 | return fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None) 130 | 131 | def random_date_time_this_year(): 132 | '''本年的某个日期''' 133 | return fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None) 134 | 135 | def random_date_time_this_decade(): 136 | '''本年代内的一个日期''' 137 | return fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None) 138 | 139 | def random_date_time_this_century(): 140 | '''本世纪一个日期''' 141 | return fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None) 142 | 143 | def random_date_time_between(): 144 | '''两个时间间的一个随机时间''' 145 | return fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None) 146 | 147 | def random_timezone(): 148 | '''时区''' 149 | return fake.timezone() 150 | 151 | def random_time(): 152 | '''时间(可自定义格式)''' 153 | return fake.time(pattern="%H:%M:%S") 154 | 155 | def random_am_pm(): 156 | '''随机上午下午''' 157 | return fake.am_pm() 158 | 159 | def random_month(): 160 | '''随机月份''' 161 | return fake.month() 162 | 163 | def random_month_name(): 164 | '''随机月份名字''' 165 | return fake.month_name() 166 | 167 | def random_year(): 168 | '''随机年''' 169 | return fake.year() 170 | 171 | def random_day_of_week(): 172 | '''随机星期几''' 173 | return fake.day_of_week() 174 | 175 | def random_day_of_month(): 176 | '''随机月中某一天''' 177 | return fake.day_of_month() 178 | 179 | def random_time_delta(): 180 | '''随机时间延迟''' 181 | return fake.time_delta() 182 | 183 | def random_date_object(): 184 | '''随机日期对象''' 185 | return fake.date_object() 186 | 187 | def random_time_object(): 188 | '''随机时间对象''' 189 | return fake.time_object() 190 | 191 | def random_unix_time(): 192 | '''随机unix时间(时间戳''' 193 | return fake.unix_time() 194 | 195 | def random_date(): 196 | '''随机日期(可自定义格式''' 197 | return fake.date(pattern="%Y-%m-%d") 198 | 199 | def random_date_time_ad(): 200 | '''公元后随机日期''' 201 | return fake.date_time_ad(tzinfo=None) 202 | 203 | def random_job(): 204 | '''工作职位''' 205 | return fake.job() 206 | 207 | def random_text(): 208 | '''随机生成一篇文章''' 209 | return fake.text(max_nb_chars=200) 210 | 211 | def random_word(): 212 | '''随机单词''' 213 | return fake.word() 214 | 215 | def random_words(): 216 | '''随机生成几个字''' 217 | return fake.words(nb=3) 218 | 219 | def random_sentence(): 220 | '''随机生成一个句子''' 221 | return fake.sentence(nb_words=6, variable_nb_words=True) 222 | 223 | def random_sentences(): 224 | '''随机生成几个句子''' 225 | return fake.sentences(nb=3) 226 | 227 | def random_paragraph(): 228 | '''随机生成一段文字(字符串)''' 229 | return fake.paragraph(nb_sentences=3, variable_nb_sentences=True) 230 | 231 | def random_paragraphs(): 232 | '''随机生成成几段文字(列表)''' 233 | return fake.paragraphs(nb=3) 234 | 235 | def random_password(): 236 | '''随机密码(可指定密码策略)''' 237 | return fake.password(length=10, special_chars=True, digits=True, upper_case=True, lower_case=True) 238 | 239 | def random_uuid4(): 240 | '''随机uuid''' 241 | return fake.uuid4() 242 | 243 | def random_locale(): 244 | '''随机本地代码''' 245 | return fake.locale() 246 | 247 | def random_phonenumber_prefix(): 248 | '''运营商号段,手机号码前三位''' 249 | return fake.phonenumber_prefix() 250 | 251 | def random_pyint(): 252 | '''随机int''' 253 | return fake.pyint() 254 | 255 | def random_pystr(): 256 | '''随机字符串(可指定长度)''' 257 | return fake.pystr(min_chars=None, max_chars=20) 258 | 259 | def random_user_agent(): 260 | '''伪造UA''' 261 | return fake.user_agent() 262 | 263 | def random_num(length): 264 | """随机数字""" 265 | return fake.random_number(length) 266 | 267 | def random_email(): 268 | """随机email""" 269 | return fake.email() 270 | 271 | def random_ipv4(): 272 | """随机IPV4地址""" 273 | return fake.ipv4() 274 | 275 | def random_str(min_chars=0, max_chars=8): 276 | """长度在最大值与最小值之间的随机字符串""" 277 | return fake.pystr(min_chars=min_chars, max_chars=max_chars) 278 | 279 | def factory_generate_ids(starting_id=1, increment=1): 280 | """ 返回一个生成器函数,调用这个函数产生生成器,从starting_id开始,步长为increment。 """ 281 | def generate_started_ids(): 282 | val = starting_id 283 | local_increment = increment 284 | while True: 285 | yield val 286 | val += local_increment 287 | return generate_started_ids 288 | 289 | def factory_choice_generator(values): 290 | """ 返回一个生成器函数,调用这个函数产生生成器,从给定的list中随机取一项。 """ 291 | def choice_generator(): 292 | my_list = list(values) 293 | rand = random.Random() 294 | while True: 295 | yield random.choice(my_list) 296 | return choice_generator 297 | 298 | 299 | if __name__ == '__main__': 300 | # print(random_phone_number()) 301 | # print(random_name()) 302 | # print(random_address()) 303 | # print(random_email()) 304 | # print(random_ipv4()) 305 | # print(random_str(min_chars=6, max_chars=8)) 306 | # id_gen = factory_generate_ids(starting_id=0, increment=2)() 307 | # for i in range(5): 308 | # print(next(id_gen)) 309 | # 310 | # choices = ['John', 'Sam', 'Lily', 'Rose'] 311 | # choice_gen = factory_choice_generator(choices)() 312 | # for i in range(5): 313 | # print(next(choice_gen)) 314 | print(random_num(3)) 315 | print(random_words()) 316 | -------------------------------------------------------------------------------- /utils/logger.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | # -*- coding: utf-8 -*- 3 | # @Author : Vant 4 | # @Email : 944921374@qq.com 5 | 6 | import logging 7 | import os.path 8 | import time 9 | 10 | class Logger(object): 11 | def __init__(self,logger): 12 | ''' 13 | 将日志保存到指定的路径文件中 14 | 指定日志的级别,以及调用文件 15 | ''' 16 | 17 | #创建logger文件 18 | self.logger = logging.getLogger(logger) 19 | self.logger.setLevel(logging.DEBUG) 20 | 21 | #创建一个handle,用来写入日志文件 22 | now = time.strftime("%Y-%m-%d_%H_%M_%S_") 23 | # log_path = './logs/' 24 | LOG_PATH = './logs/' 25 | if not os.path.exists(LOG_PATH): 26 | os.mkdir(LOG_PATH) # 如果不存在这个logs文件夹,就自动创建一个 27 | log_name = LOG_PATH+now+'.log' 28 | 29 | filehandle = logging.FileHandler(log_name,encoding="utf-8") 30 | filehandle.setLevel(logging.INFO) 31 | 32 | #创建一个handle,用来输入日志到控制台 33 | controlhandle = logging.StreamHandler() 34 | controlhandle.setLevel(logging.INFO) 35 | 36 | #将输出的hangdle格式进行转换 37 | formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s') 38 | filehandle.setFormatter(formatter) 39 | controlhandle.setFormatter(formatter) 40 | 41 | #给logger添加handle 42 | self.logger.addHandler(filehandle) 43 | self.logger.addHandler(controlhandle) 44 | 45 | def getlog(self): 46 | return self.logger 47 | -------------------------------------------------------------------------------- /utils/readFile.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding:utf-8 -*- 3 | """ 4 | 文件读取。YamlReader读取yaml文件,ExcelReader读取excel。 5 | """ 6 | import yaml 7 | import os 8 | from xlrd import open_workbook 9 | 10 | 11 | class YamlReader: 12 | def __init__(self, yamlf): 13 | if os.path.exists(yamlf): 14 | self.yamlf = yamlf 15 | else: 16 | raise FileNotFoundError('文件不存在!') 17 | self._data = None 18 | 19 | @property 20 | def data(self): 21 | # 如果是第一次调用data,读取yaml文档,否则直接返回之前保存的数据 22 | if not self._data: 23 | with open(self.yamlf, 'rb') as f: 24 | self._data = list(yaml.safe_load_all(f)) # load后是个generator,用list组织成列表 25 | return self._data 26 | 27 | 28 | class SheetTypeError(Exception): 29 | pass 30 | 31 | 32 | class ExcelReader: 33 | """ 34 | 读取excel文件中的内容。返回list。 35 | 36 | 如: 37 | excel中内容为: 38 | | A | B | C | 39 | | A1 | B1 | C1 | 40 | | A2 | B2 | C2 | 41 | 42 | 如果 print(ExcelReader(excel, title_line=True).data),输出结果: 43 | [{A: A1, B: B1, C:C1}, {A:A2, B:B2, C:C2}] 44 | 45 | 如果 print(ExcelReader(excel, title_line=False).data),输出结果: 46 | [[A,B,C], [A1,B1,C1], [A2,B2,C2]] 47 | 48 | 可以指定sheet,通过index或者name: 49 | ExcelReader(excel, sheet=2) 50 | ExcelReader(excel, sheet='BaiDuTest') 51 | """ 52 | def __init__(self, excel, sheet=0, title_line=True): 53 | if os.path.exists(excel): 54 | self.excel = excel 55 | else: 56 | raise FileNotFoundError('文件不存在!') 57 | self.sheet = sheet 58 | self.title_line = title_line 59 | self._data = list() 60 | 61 | @property 62 | def data(self): 63 | if not self._data: 64 | workbook = open_workbook(self.excel) 65 | if type(self.sheet) not in [int, str]: 66 | raise SheetTypeError('Please pass in or , not {0}'.format(type(self.sheet))) 67 | elif type(self.sheet) == int: 68 | s = workbook.sheet_by_index(self.sheet) 69 | else: 70 | s = workbook.sheet_by_name(self.sheet) 71 | 72 | if self.title_line: 73 | title = s.row_values(0) # 首行为title 74 | for col in range(1, s.nrows): 75 | # 依次遍历其余行,与首行组成dict,拼到self._data中 76 | self._data.append(dict(zip(title, s.row_values(col)))) 77 | else: 78 | for col in range(0, s.nrows): 79 | # 遍历所有行,拼到self._data中 80 | self._data.append(s.row_values(col)) 81 | return self._data 82 | 83 | 84 | # if __name__ == '__main__': 85 | # y = 'browser.yaml' 86 | # reader = YamlReader(y) 87 | # print(reader.data) 88 | -------------------------------------------------------------------------------- /vantpy2.0.emmx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/G2Bent/Vantpy/37369b8494b79ca60c99593fe3c75981035c8ec1/vantpy2.0.emmx --------------------------------------------------------------------------------