Giter Club home page Giter Club logo

Comments (10)

DzmitryHumianiuk avatar DzmitryHumianiuk commented on June 3, 2024

@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.

iivanou avatar iivanou commented on June 3, 2024

@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.

Dhams-1 avatar Dhams-1 commented on June 3, 2024

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
image

is there anything i am missing here. kindly help me with the same

from agent-python-robotframework.

iivanou avatar iivanou commented on June 3, 2024

@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.

Dhams-1 avatar Dhams-1 commented on June 3, 2024

@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.

iivanou avatar iivanou commented on June 3, 2024

@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.

Dhams-1 avatar Dhams-1 commented on June 3, 2024

@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.

iivanou avatar iivanou commented on June 3, 2024

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.

bharatslalchandani avatar bharatslalchandani commented on June 3, 2024

@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.

iivanou avatar iivanou commented on June 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.