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

2 REPLIES 2
harsh-dubey
New Contributor

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

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.

krishnapemmaraj
New Contributor

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

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

cancel
Showing results for 
Search instead for 
Did you mean: