Comments (10)
@Dhams-1 it can be outdated.
team working on client-python update, so it should be fixed quite soon.
@iivanou does file sending change?
from agent-python-robotframework.
@Dhams-1 There was an issue with sending log data. Now, it is fixed in version 5.0.1. Could you try it?
from agent-python-robotframework.
Hi @iivanou @DzmitryHumianiuk
Thank you for the update
I updated the to the latest version robotframework-reportportal==5.0.1
I am not able to find the screenshots in case of test failures. getting the log with image details but it is missing in reportportal
is there anything i am missing here. kindly help me with the same
from agent-python-robotframework.
@Dhams-1 Hi, everything works well on my side. Are you sure that you use the full path to the screenshot in your code?
from agent-python-robotframework.
@iivanou I am not specifying any explicit path. when i run the robot framework test i do something like this
C:\go\to\testfolder> pybot --listener robotframework_reportportal.listener --variable RP_UUID:..........-d Results .......................-vbrowser:chrome -vbaseurl:
So all the screenshots are saved in the Results folder. With Robotframework html report is displayed with the screenshots but in reportportal it is missing.
should i have to mention the path explicit or how to fix the same
from agent-python-robotframework.
@Dhams-1 You should report attachments the way it is described in the docs. Selenium itself does not send anything to RP.
from agent-python-robotframework.
@iivanou Sorry i am very new to report portal I went through the code in
https://github.com/reportportal/client-Python#send-attachement-screenshots
but I was not sure where to add this code snippet.. should i add it in the listener or create my own class file.
from agent-python-robotframework.
You should add this code snippet to the Python module, modify it the way you need, import that module in your Robot file, call created keyword passing a path to the screenshot. It is nothing about Report Portal but rather extending Robot Framework.
from agent-python-robotframework.
@iivanou: In the code snippet for the screenshot, we need to pass image name but here in execution, we do not know the image name generated by selenium as it is done in an incremented manner (like selenium-screenshot-1,2,3,.. so on) on any step failure. So how can we have that call of the keyword for all the images that get generated by selenium code of any test step failure or waiting for some element ?
from agent-python-robotframework.
@bharatslalchandani I think you can get the image name generated by the selenium and pass it to the keyword that will send it out to RP. That's what I found doing a quick search through the documentation: https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Capture%20Page%20Screenshot
from agent-python-robotframework.
Related Issues (20)
- [ ERROR ] Parsing 'Robot_Keywords.robot' failed: File or directory to execute does not exist. Try --help for usage information.The error states it's clear, please update `pandas` library. Apart from that your issue doesn't follow our template. HOT 3
- [ ERROR ] Parsing 'Robot_Keywords.robot' failed: File or directory to execute does not exist. Try --help for usage information. HOT 2
- [ ERROR ] Parsing 'DDT2.robot' failed: File or directory to execute does not exist. Try --help for usage information. HOT 2
- problem about listener HOT 7
- Can't use pabot to attach the image to Reportportal HOT 1
- listener 'robotframework_reportportal.listener' failed: TypeError: Object of type _PresenceSentinel is not JSON serializable HOT 2
- Skipped steps showing as PASSED in Report Portal UI HOT 1
- Any Option to Enable Screenshot along with screenshots when we use command line robotframework_reportportal.listener HOT 3
- HELP NEEDED: Not able to run robot file integration with report-portal HOT 5
- Enable environment for storage of listener variables
- ***Not able to login as admin user to report portal** HOT 2
- post_report.py to send results asynchronously HOT 3
- Performance with robotframework-reportportal 6-10 times slower than without HOT 7
- Add 'metadata' parameters processing for Launch and Suite level HOT 4
- Calling method 'log_message' of listener 'robotframework_reportportal.listener' failed HOT 6
- Robot Framework report portal listener incompatible with Report Portal 5.8.0? HOT 2
- [ ERROR ] Calling method 'start_test' of listener 'robotframework_reportportal.listener' failed: FileNotFoundError: [Errno 2] No such file or directory HOT 1
- IF ELSE is evaluated as result HOT 3
- Python 3.12 dropped distutils
- to_timestamp() is not Timezone aware and leads to wrong times in ReportPortal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agent-python-robotframework.