{"message":"Please provide correct framework."}
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
{"message":"Please provide correct framework."}
I am executing API to create a Automation Task with the below Input
POST data:
{
"automationTool":"JUNIT",
"automationType":"UPLOAD",
"taskname":"Job1",
"cycleName":"Cycle1",
"folderName":"Folder1",
"appendDateTimeInCycleName":true,
"appendDateTimeInFolderName":true,
"versionName":"Unscheduled",
"projectKey":"AD",
"cycleStartingDate":"",
"cycleEndingDate":"",
"createNewCycle":true,
"createNewFolder":true,
"assigneeUser":"",
"jobDescription":"TEST AUTO",
}
but it is giving me the same error.
Could you please help
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @krishnapemmaraj
Looks like your request payload is incorrect.
The correct keyName is "automationFramework" not "automationTool"
jobName:Job1
automationFramework:JUNIT
cycleName:Cycle1
folderName:Folder1
versionName:Unscheduled
projectKey:{projectKey}
cycleStartingDate:
cycleEndingDate:
createNewCycle:true/false
createNewFolder:true/false
file:result.zip
assigneeUser:assignee accountId
jobDescription:Descriptions
Hope it helps.
BR.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks hash-dubey
I tried with the below
POST data:
{
"automationFramework":"JUNIT",
"automationType":"UPLOAD",
"taskname":"Job1",
"cycleName":"Cycle1",
"folderName":"Folder1",
"appendDateTimeInCycleName":true,
"appendDateTimeInFolderName":true,
"versionName":"Unscheduled",
"projectKey":"{projectKey",
"cycleStartingDate":"",
"cycleEndingDate":"",
"createNewCycle":true,
"createNewFolder":true,
"assigneeUser":"{My ID}",
"jobDescription":"TEST AUTO",
}
but still got the same error
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
any workaround to this issue
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the exact same issue:
b'{"message":"Please provide correct framework."}'
This is the payload I'm passing:
{'jobName': 'My task', 'jobDescription': 'Task description', 'automationFramework': 'JUNIT', 'projectKey': 'ZT', 'versionName': 'Unscheduled', 'cycleName': 'CICD Automation', 'createNewCycle': 'true', 'appendDateTimeInCycleName': 'false', 'folderName': 'Windows', 'createNewFolder': 'true', 'appendDateTimeInFolderName': 'true', 'file': 'C:/2022/March_2022/test.xml'}
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it is not working as per documentation. Have you ever tried this?
