Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two classes doesn't show two tests in the report #23

Open
karthikeayan opened this issue Jul 13, 2018 · 4 comments
Open

Two classes doesn't show two tests in the report #23

karthikeayan opened this issue Jul 13, 2018 · 4 comments

Comments

@karthikeayan
Copy link
Contributor

karthikeayan commented Jul 13, 2018

import time
import unittest
from apiritif import http, transaction

target = http.target('https://jsonplaceholder.typicode.com')
target.keep_alive(True)
target.auto_assert_ok(False)
target.use_cookies(True)

class TestRequests2(unittest.TestCase):
    def test_1_single_request(self):
        target.get('/')    

class TestRequests(unittest.TestCase):
    # will produce test-case sample with one sub-sample
    def test_1_single_request(self):
        target.get('/')

Expected : TestRequests and TestRequests2 in the report
Actual : Everything goes inside TestRequests

@dimp-gh
Copy link
Contributor

dimp-gh commented Jul 13, 2018

Which result file format are you using? (the same question is do you use Apiritif in load testing mode or in functional testing mode?)

@karthikeayan
Copy link
Contributor Author

I see this in BlazeMeter logs.

[2018-07-13 08:29:47,884 DEBUG bzt.utils] Executing shell: ['/usr/bin/python', '-m', 'apiritif.loadgen', '--result-file-template', '/tmp/artifacts/apiritif-%s.ldjson', '--concurrency', '1', '--iterations', '1', '--hold-for', '1140.0', '--ramp-up', '60.0', u'artifactory-test.py'] at /tmp/artifacts

@dimp-gh
Copy link
Contributor

dimp-gh commented Jul 23, 2018

Sorry, it somehow took a while to reproduce that one. Can you post a screenshot of your report?

It looks like a nuance of BlazeMeter reports for functional tests. Every sample is merged into a single tree with a single root element. That's why samples got inside a single root.

@karthikeayan
Copy link
Contributor Author

screen shot 2018-07-28 at 12 56 39 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants