How to use plugins_prepare_test method in yandex-tank

Best Python code snippet using yandex-tank

test_tankcore.py

Source:test_tankcore.py Github

copy

Full Screen

...117@pytest.mark.parametrize('config, expected', [118 (CFG1, None),119 (CFG_MULTI, None)120])121def test_plugins_prepare_test(config, expected):122 core = TankCore([config], threading.Event())123 core.plugins_prepare_test()124@pytest.mark.skip('Not implemented')125def test_stpd_file():126 raise NotImplementedError127@pytest.mark.skip('disabled for travis')128@pytest.mark.parametrize('config', [129 CFG_MULTI,130])131def test_start_test(config):132 core = TankCore(configs=[config])133 core.plugins_prepare_test()134 core.plugins_start_test()135 core.plugins_end_test(1)136@pytest.mark.parametrize('options, expected', [137 (138 ['meta.task=LOAD-204',139 'phantom.ammofile = air-tickets-search-ammo.log',140 'meta.component = air_tickets_search [imbalance]',141 'meta.jenkinsjob = https://jenkins-load.yandex-team.ru/job/air_tickets_search/'],142 [{'uploader': {'package': 'yandextank.plugins.DataUploader', 'task': 'LOAD-204'}},143 {'phantom': {'package': 'yandextank.plugins.Phantom', 'ammofile': 'air-tickets-search-ammo.log'}},144 {'uploader': {'package': 'yandextank.plugins.DataUploader', 'component': 'air_tickets_search [imbalance]'}},145 {'uploader': {'package': 'yandextank.plugins.DataUploader',146 'meta': {'jenkinsjob': 'https://jenkins-load.yandex-team.ru/job/air_tickets_search/'}}}]147 ),...

Full Screen

Full Screen

apiworker.py

Source:apiworker.py Github

copy

Full Screen

...58 self.status = Status.TEST_PREPARING59 logger.info('Created a folder for the test. %s' % self.folder)60 self.core.plugins_configure()61 add_cleanup('plugins cleanup', self.core.plugins_cleanup)62 self.core.plugins_prepare_test()63 with Finish(self):64 self.status = Status.TEST_RUNNING65 self.core.plugins_start_test()66 self.retcode = self.core.wait_for_finish()67 self.status = Status.TEST_POST_PROCESS68 self.retcode = self.core.plugins_post_process(self.retcode)69class SingleLevelFilter(logging.Filter):70 """Exclude or approve one msg type at a time. """71 def __init__(self, passlevel, reject):72 logging.Filter.__init__(self)73 self.passlevel = passlevel74 self.reject = reject75 def filter(self, record):76 if self.reject:...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run yandex-tank automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful