cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Tools - Deployment Test Mode

AdrDen
Explorer
0 Kudos

Hi,

I have a problem with the 'test' parameter for the Deployment. Looks like it's not working... and the deployment still takes place.

You can check the param here:

https://help.sap.com/viewer/17d50220bcd848aa854c9c182d65b699/Latest/en-US/1c859274b511435ab6bd45f70e...

test

  • true|false (Default: false)
  • If set to true, the task runs through all steps including sending the archive to the SAP backend. The backend will not deploy the app but run the predeployment checklist and return the result.

My dev dependencies:

"@sap/ux-ui5-tooling": "^1.3.7"

ui5-deploy.yaml:

specVersion: "2.4"metadata: name: "APP"type: applicationbuilder: resources: excludes: - /test/** customTasks: - name: deploy-to-abap afterTask: generateCachebusterInfo configuration: ignoreCertError: true target: url: <url> client: 100 auth: basic credentials: username: env:UI5_USER password: env:UI5_PASSWORD test: true app: name: NAME description: DESC package: PACKAGE transport: TRANSPORT exclude: - .*\.test.js - internal.md

If you have any experience with the deployment test, I would be grateful if you can help.

BR,

Adrian

Accepted Solutions (1)

Accepted Solutions (1)

quiggs1000
Advisor
Advisor
0 Kudos

Hi Adrian,

FT 1.4 should have this functionality, yes. Please ensure you have added deployment configuration to your project, you will not be able to see the deploy-test target until you do. You can add deployment configuration to your existing project by executing (from your project root):

npm run deploy-config

Also, the deploy-test target is currently only supported for ABAP deployments and not Cloud Foundry.

Regards,

Ian

Answers (1)

Answers (1)

quiggs1000
Advisor
Advisor
0 Kudos

Hello Adrian,

Thank you for reaching out. There is currently a gap in our documentation, sorry about that.

For ABAP deployment, we have added a new `deploy-test` target to the generated application which will allow you to run the deployment in test mode. Can you please execute this target, as it will allow you run in test mode. In the meantime, I will get the documentation updated 🙂

Thanks

Ian

AdrDen
Explorer
0 Kudos

Hi Ian,

I'm using FT v. 1.4 in VSC and I generated a project using sample SAPUI5 Application.

I can only see "deploy" and "deploy-config" scripts in package.json.

Is it the right place? If yes - how should this script be specified?

BR,

Adrian