Ask a Question

{"message":"Please provide correct framework."}

krishnapemmaraj
New Contributor

{"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

5 REPLIES 5
harsh-dubey
Occasional Contributor

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.

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

raj312
Occasional Contributor

any workaround to this issue

andres_gonzalo
Frequent Visitor

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'}

it is not working as per documentation. Have you ever tried this?

cancel
Showing results for 
Search instead for 
Did you mean: