Robotframework 正在使用JiraRobot库,但无法在Robot框架中连接Jira

Robotframework 正在使用JiraRobot库,但无法在Robot框架中连接Jira,robotframework,jira,Robotframework,Jira,我试着用下面的代码连接Jira *** Settings *** Library JiraRobot *** Test Cases *** Test_Connect_Jira Connect To Jira ${UserID} ${Pass} options= {'server':'${ServerName}'} Log Get Current User 我出错了 [ WARN ] ('Connection aborted.

我试着用下面的代码连接Jira

*** Settings ***
Library         JiraRobot
       
*** Test Cases *** 
Test_Connect_Jira
   Connect To Jira    ${UserID}  ${Pass}  options= {'server':'${ServerName}'}
   Log    Get Current User
我出错了

    [ WARN ] ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) while doing GET https://jira.xxx.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.24.0', 'Connection': 'keep-alive', u'X-Atlassian-Token': u'no-check', u'Cache-Control': u'no-cache', u'Content-Type': u'application/json'}, 'params': None}]
[ WARN ] Got ConnectionError [('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))] errno:None on GET https://jira.xxx.com/rest/api/2/serverInfo
{'request': <PreparedRequest [GET]>, 'response': None}\{'request': <PreparedRequest [GET]>, 'response': None}
[ WARN ] Got recoverable error from GET https://jira.xxx.com/rest/api/2/serverInfo, will retry [1/3] in 0.531449693973s. Err: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))
[ WARN ] ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) while doing GET https://jira.xxx.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.24.0', 'Connection': 'keep-alive', u'X-Atlassian-Token': u'no-check', u'Cache-Control': u'no-cache', u'Content-Type': u'application/json'}, 'params': None}]
[ WARN ] Got ConnectionError [('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))] errno:None on GET https://jira.xxx.com/rest/api/2/serverInfo
{'request': <PreparedRequest [GET]>, 'response': None}\{'request': <PreparedRequest [GET]>, 'response': None}
[ WARN ] Got recoverable error from GET https://jira.xxx.com/rest/api/2/serverInfo, will retry [2/3] in 3.70011506578s. Err: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))
[ WARN ] ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) while doing GET https://jira.xxx.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.24.0', 'Connection': 'keep-alive', u'X-Atlassian-Token': u'no-check', u'Cache-Control': u'no-cache', u'Content-Type': u'application/json'}, 'params': None}]
[ WARN ] Got ConnectionError [('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))] errno:None on GET https://jira.xxx.com/rest/api/2/serverInfo
{'request': <PreparedRequest [GET]>, 'response': None}\{'request': <PreparedRequest [GET]>, 'response': None}
[ WARN ] Got recoverable error from GET https://jira.xxx.com/rest/api/2/serverInfo, will retry [3/3] in 50.5519016195s. Err: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))
[ WARN ] ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) while doing GET https://jira.xxx.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.24.0', 'Connection': 'keep-alive', u'X-Atlassian-Token': u'no-check', u'Cache-Control': u'no-cache', u'Content-Type': u'application/json'}, 'params': None}]
[ ERROR ] Execution stopped by user.

Authentication to JIRA unsuccessful. Ensure the user used has sufficient access and that Username and Password were correct


Process finished with exit code 253
[WARN](“连接中止”,错误(10054,“现有连接被远程主机强制关闭”)https://jira.xxx.com/rest/api/2/serverInfo [{u'headers':{'Accept-Encoding':'gzip,deflate',u'Accept':u'application/json,*.*;q=0.9','User-Agent':'python-requests/2.24.0','Connection':'keep-alive',u'X-Atlassian-Token':u'no-check',u'Cache-Control',u'Content-Type':u'application/json'},'params':None}]
[警告]获取了ConnectionError[(“连接已中止”,错误(10054,“现有连接已被远程主机强制关闭”)]错误号:获取时无https://jira.xxx.com/rest/api/2/serverInfo
{'request':,'response':None}\{'request':,'response':None}
[警告]从GET中获取可恢复错误https://jira.xxx.com/rest/api/2/serverInfo,将在0.531449693973s中重试[1/3]。错误:(“连接已中止”,错误(10054,“现有连接已被远程主机强制关闭”)
执行GET时出现[警告](“连接中止”,错误(10054,“现有连接被远程主机强制关闭”)https://jira.xxx.com/rest/api/2/serverInfo [{u'headers':{'Accept-Encoding':'gzip,deflate',u'Accept':u'application/json,*.*;q=0.9','User-Agent':'python-requests/2.24.0','Connection':'keep-alive',u'X-Atlassian-Token':u'no-check',u'Cache-Control',u'Content-Type':u'application/json'},'params':None}]
[警告]获取了ConnectionError[(“连接已中止”,错误(10054,“现有连接已被远程主机强制关闭”)]错误号:获取时无https://jira.xxx.com/rest/api/2/serverInfo
{'request':,'response':None}\{'request':,'response':None}
[警告]从GET中获取可恢复错误https://jira.xxx.com/rest/api/2/serverInfo,将在3.70011506578s中重试[2/3]。错误:(“连接已中止”,错误(10054,“现有连接已被远程主机强制关闭”)
执行GET时出现[警告](“连接中止”,错误(10054,“现有连接被远程主机强制关闭”)https://jira.xxx.com/rest/api/2/serverInfo [{u'headers':{'Accept-Encoding':'gzip,deflate',u'Accept':u'application/json,*.*;q=0.9','User-Agent':'python-requests/2.24.0','Connection':'keep-alive',u'X-Atlassian-Token':u'no-check',u'Cache-Control',u'Content-Type':u'application/json'},'params':None}]
[警告]获取了ConnectionError[(“连接已中止”,错误(10054,“现有连接已被远程主机强制关闭”)]错误号:获取时无https://jira.xxx.com/rest/api/2/serverInfo
{'request':,'response':None}\{'request':,'response':None}
[警告]从GET中获取可恢复错误https://jira.xxx.com/rest/api/2/serverInfo,将在50.5519016195s后重试[3/3]。错误:(“连接已中止”,错误(10054,“现有连接已被远程主机强制关闭”)
执行GET时出现[警告](“连接中止”,错误(10054,“现有连接被远程主机强制关闭”)https://jira.xxx.com/rest/api/2/serverInfo [{u'headers':{'Accept-Encoding':'gzip,deflate',u'Accept':u'application/json,*.*;q=0.9','User-Agent':'python-requests/2.24.0','Connection':'keep-alive',u'X-Atlassian-Token':u'no-check',u'Cache-Control',u'Content-Type':u'application/json'},'params':None}]
[错误]用户已停止执行。
对JIRA的身份验证失败。请确保使用的用户具有足够的访问权限,并且用户名和密码正确
进程已完成,退出代码为253
但我实际上是通过这些用户名和密码手动登录的


任何有经验的人请帮助我。

下面的关键词对我有用

***背景***

图书馆申请图书馆

图书馆JiraRobot

***关键词****

连接到Jira

Connect To Jira    username   password    options={'rest_api_version': '2', 'verify': True, 'server': 'Jira URL', 'headers': {'X-Atlassian-Token': 'nocheck'}, 'rest_path': 'api', 'resilient': 'False', 'async': 'False'}
此外,请确保该库可用

pip install JiraRobot

我现在可以使用API令牌而不是密码连接Jira。

是否可以将第一个代码块分成多行?滚动不是redwood?通常json/JS可以写在多行上以便于阅读。我也不清楚“连接到Jira”、“用户名”或“密码”是什么应该包含在代码块中。在我看来,它们可能是菜单项?。但我不熟悉此工具/框架。信息看起来不错,我只是想问,是否有更好的方法来格式化本文中的信息,以提高清晰度和可见性。