Forum Discussion

krishnapemmaraj's avatar
krishnapemmaraj
New Contributor
3 years ago

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

  • 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's avatar
      krishnapemmaraj
      New Contributor

      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's avatar
        raj312
        Occasional Contributor

        any workaround to this issue

    • karthikyn's avatar
      karthikyn
      Regular Visitor

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

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