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

Logs are not getting attached while executing Pabot with ReportPortal #195

Open
deekhare911 opened this issue Jul 30, 2024 · 1 comment
Open
Labels

Comments

@deekhare911
Copy link

deekhare911 commented Jul 30, 2024

Describe the bug
Logs are not getting attached while executing Pabot with ReportPortal

Steps to Reproduce
Steps to reproduce the behavior:

  1. Create Launch using API:
    `import requests
    import json

url = "https://demo.reportportal.io/api/v1/:projectName/launch"

payload = json.dumps({
"attributes": [
{
"key": "string",
"system": False,
"value": "string"
}
],
"description": "string",
"mode": "DEFAULT",
"name": "string",
"rerun": True,
"rerunOf": "string",
"startTime": "2024-06-21T07:32:35.273Z"
})
headers = {
'Content-Type': 'application/json',
'Accept': '/',
'Authorization': 'bearer ' + rp_token
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)`

  1. Execute Pabot command: (RP_LAUNCH_UUID - we are getting from Step1)
    pabot --processes 3 --testlevelsplit --listener robotframework_reportportal.listener -v headless:True -v URL:https://helloworld.com/ -v Username:[email protected] -v Password:*** -v ENV:QA -v CLIENT:Internal --exclude platform:Windows -v RP_LAUNCH:Demo_NewRPTest -v RP_LAUNCH_UUID:10171752-9d5e-4345-a26d-*** -v RP_ENDPOINT:https://reportportal.artegocloud.com -v RP_API_KEY:*** -v RP_PROJECT:Internal **-v RP_ATTACH_LOG:True -v RP_ATTACH_XUNIT:True -v RP_ATTACH_REPORT:True** --xunit xunit_output.xml --outputdir /testoutputs --include SmokeTestsANDENV:QAANDCLIENT:Internal TestCases/*

  2. Finish Launch using API:
    `import requests
    import json

url = "https://demo.reportportal.io/api/v1/:projectName/launch/:launchId/finish"

payload = json.dumps({
"attributes": [
{
"key": "string",
"system": False,
"value": "string"
}
],
"description": "string",
"endTime": "2024-06-21T07:32:35.273Z",
"status": "PASSED"
})
headers = {
'Content-Type': 'application/json',
'Accept': '/',
'Authorization': 'bearer ' + rp_token
}

response = requests.request("PUT", url, headers=headers, data=payload)

print(response.text)`

Expected behavior
This should create a single launch - with logs attached - because we have given -v RP_ATTACH_LOG:True -v RP_ATTACH_XUNIT:True -v RP_ATTACH_REPORT:True

Actual behavior
Single launch is getting created - but logs are not attached

Package versions
robotframework ==7.0
robotframework-pabot==2.17.0
reportportal-client==5.5.4
robotframework-reportportal==1.0.0
RP Build: 5.11.0

Additional context
Please let me know if I'm missing something here.

image

image

image

@deekhare911
Copy link
Author

@HardNorth - Could you please help me on this ?

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

No branches or pull requests

1 participant