aboutsummaryrefslogtreecommitdiffstats
path: root/api
AgeCommit message (Expand)AuthorFilesLines
2018-04-15Fix emails and copyrights in all conf.pyCédric Ollivier1-3/+3
2018-04-04Bypass mismatches between pbr and readthedocsCédric Ollivier1-0/+35
2018-04-04Check API doc via doc8Cédric Ollivier4-231/+15
2018-03-19Fix apidoc buildsCédric Ollivier1-2/+1
2018-03-02Leverage on XtestingCédric Ollivier5-32/+0
2018-02-05Switch to the readthedocs theme for api docsCédric Ollivier2-1/+4
2017-11-27Create RobotFramework classCédric Ollivier2-0/+8
2017-05-29Move api out of the docs directoryCédric Ollivier16-0/+701
s="c1">############################################################################## # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## from __future__ import absolute_import import unittest from tests.functional import utils class RunnerTestCase(unittest.TestCase): def setUp(self): super(RunnerTestCase, self).setUp() self.yardstick = utils.Yardstick() def test_runner_list(self): res = self.yardstick("runner list") self.assertIn("Duration", res) self.assertIn("Arithmetic", res) self.assertIn("Iteration", res) self.assertIn("Sequence", res) def test_runner_show_Duration(self): res = self.yardstick("runner show Duration") duration = "duration - amount of time" in res self.assertTrue(duration) def test_runner_show_Arithmetic(self): res = self.yardstick("runner show Arithmetic") arithmetic = "Run a scenario arithmetically" in res self.assertTrue(arithmetic) def test_runner_show_Iteration(self): res = self.yardstick("runner show Iteration") iteration = "iterations - amount of times" in res self.assertTrue(iteration) def test_runner_show_Sequence(self): res = self.yardstick("runner show Sequence") sequence = "sequence - list of values which are executed" in res self.assertTrue(sequence)