reportportal / agent-Python-RobotFramework

Robot Framework integration for Report Portal
Apache License 2.0
59 stars 32 forks source link

RP_LAUNCH_TAGS NOT appearing in key and value format on report portal #70

Closed login4ajeet closed 4 years ago

login4ajeet commented 4 years ago

RP_LAUNCH_TAGS is NOT appearing in key value format on report portal while running the below pabot commands.

pabot --listener robotframework_reportportal.listener --escape quot:Q --variable RP_ENDPOINT:end_point_url --variable RP_UUID:3xyz--variable RP_LAUNCH:"AjeetDemoDryRun6" --variable RP_PROJECT:ABC_Project --variable RP_LAUNCH_TAGS:"DemoRegression:DemoTestTag" RobotTestsFileFolderName

Actual Result- DemoRegression:DemoTestTag is setting up as attribute values on the RP as shown in the screenshot. The attribute keys is empty Expected Result - DemoRegression should show as attribute keys and DemoTestTag should show as attribute values

Just for reference old issue- https://github.com/reportportal/agent-Python-RobotFramework/issues/68

Below is the screenshot from report portal . image

iivanou commented 4 years ago

What version of the agent are you running? Please, update your agent to the latest version and use RP_LAUNCH_ATTRIBUTES variable name instead.

login4ajeet commented 4 years ago

Using robotframework-reportportal 3.1.1

login4ajeet commented 4 years ago

@iivanou - Could you please let me know any specific version which will work for attributes key and value ?

iivanou commented 4 years ago

ReportPortal version 4?

login4ajeet commented 4 years ago

@iivanou - This is my current version . Is that NOT fine ? image

iivanou commented 4 years ago

I mean version of the Report Portal itself, not agent.

login4ajeet commented 4 years ago

Its 5.2.1

iivanou commented 4 years ago

Update your agent to version 5.0.3.

login4ajeet commented 4 years ago

Done . Is that fine ? image

iivanou commented 4 years ago

Are you able to reproduce your problem with that version?

login4ajeet commented 4 years ago

@iivanou - I tried with Report portal version 5.2.0 and below agent version- image

Problem is now i am unable to see any test results on the report portal. Attributes NOT showing is 2nd thing. However below commands ran without any error/issue-

pabot --listener robotframework_reportportal.listener --escape quot:Q --variable RP_ENDPOINT:end_point_url --variable RP_UUID:3xyz--variable RP_LAUNCH:"AjeetDemoDryRun6" --variable RP_PROJECT:ABC_Project RobotTestsFileFolderName

pabot --listener robotframework_reportportal.listener --escape quot:Q --variable RP_ENDPOINT:end_point_url --variable RP_UUID:3xyz--variable RP_LAUNCH:"AjeetDemoDryRun6" --variable RP_PROJECT:ABC_Project --variable RP_LAUNCH_ATTRIBUTES:"DemoRegression:DemoTestTag" RobotTestsFileFolderName

pabot --listener robotframework_reportportal.listener --escape quot:Q --variable RP_ENDPOINT:end_point_url --variable RP_UUID:3xyz--variable RP_LAUNCH:"AjeetDemoDryRun6" --variable RP_PROJECT:ABC_Project --variable RP_TEST_ATTRIBUTES:"DemoRegression:DemoTestTag" RobotTestsFileFolderName

iivanou commented 4 years ago

Well... Try to remove the robotframework-reportportal-ng package 'cause it provides the same functionality. 5.0.3 agent reports to 5.2.0 Report Portal without issues on my side.

login4ajeet commented 4 years ago

@iivanou - The issue was with six version . I was using 1.12.0 earlier and didnt work out. so upgraded to 1.15.0 and worked fine. Now i am using below config/version with report portal build 5.2.0 and able to get the attributes and values in proper way on the report portal launch dashboard.

For single attribute- pabot --listener robotframework_reportportal.listener --escape quot:Q --variable RP_ENDPOINT:end_point_url --variable RP_UUID:3xyz--variable RP_LAUNCH:"AjeetDemoDryRun8" --variable RP_PROJECT:ABC_Project --variable RP_LAUNCH_ATTRIBUTES:"regression:tagtestdemoone" RobotTestsFileFolderName

For multiple attribute- pabot --listener robotframework_reportportal.listener --escape quot:Q --variable RP_ENDPOINT:end_point_url --variable RP_UUID:3xyz--variable RP_LAUNCH:"AjeetDemoDryRun8" --variable RP_PROJECT:ABC_Project --variable RP_LAUNCH_ATTRIBUTES:"regressiondemo:tagtest demoreg:tagtesttwo DemoRegs:tagtestthree" RobotTestsFileFolderName

image

image

Thank you !!!

iivanou commented 4 years ago

Welcome!

login4ajeet commented 4 years ago

@iivanou - You may close the issue now. Thank you once again for your time and guidance