-
Notifications
You must be signed in to change notification settings - Fork 33
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
Tutorial for beginners #8
Comments
Hi @Tset-Noitamotua, |
|
Great! Thanks a lot! I will play with that today. Pytest claims to be able to deal with Python's regular unittests (more details here). So it might be possible to run Robot's unit test with pytest with some tweaking. I'll see what I can find out. |
Results from first test runA) without ReportPortal> atest/run.py python atest/robot/
...
Run suite 'Robot' with 4470 tests in 7 minutes 23 seconds 202 milliseconds.
FAILED
4470 critical tests, 4322 passed, 148 failed
4470 tests total, 4322 passed, 148 failed B) with ReportPortal> atest/run.py python --listener robotframework_reportportal.listener --variable RP_UUID:"XXX" \
--variable RP_ENDPOINT:"http://0.0.0.0:8080" \
--variable RP_LAUNCH:"ROBOT FRAMEWORK" \
--variable RP_PROJECT:"ROBOT_INTEGRATION" atest/robot/
...
Run suite 'Robot' with 4470 tests in 14 minutes 28 seconds 791 milliseconds.
FAILED
4470 critical tests, 4322 passed, 148 failed
4470 tests total, 4322 passed, 148 failed @frizzby Did you have similar results? It's notable that test execution with ReportPortal integration takes twice as much time as without it. Approx. 15 minutes after test launch ReportPortal still shows the test running. Why? What needs to be done to finish test launch correctly? |
@frizzby just run Robot's unittests with pytest :)))) follow up ... |
@Tset-Noitamotua @frizzby |
Not related to the Agent itself |
I would like to try ReportPortal with Robot-Framework and Python unittests/pytest.
In order to better understand things I would like to make a tutorial about that. But I am kind of lost and don't know where to start :-/. So please give me some guidance and I will publish a tutorial in a Github repo or Gist.
So far I have a Ubuntu 16.04 with Docker up and running as a VirtubalBox VM on a Windows host machine. Inside that VM I have ReportPortal running by following the installation steps from your README and your docs. I can access ReportPortal UI inside VM at http://localhost:8080. Further I have cloned Robotframework repository which has a great set of over 1500 Python unittests and over 4000 acceptance test in Robot-Framework format. I want to use this tests as example for the integration with ReportPortal.
What I have in short:
docker-compose up
What are the next steps I have to work on to see the results of above mentioned tests after execution inside ReportPortal?
The text was updated successfully, but these errors were encountered: