Reply to Message

View discussion in a popup

Replying to:
xian_
Expert
Expert

I took a look on Selenium IDE (the browser plugin that can be tried quickly) but I did not see the dropdown validations. This is what I wanted to avoid, to use such generic tools.

I checked the vRA GUI with Chrome Developer tools and found some promising API calls while clicking around in my blueprints. For XaaS this is what the form itself uses (in v7):

https://vra.corp.local/catalog-service/api/consumer/catalogItems/859fcd98-90ec-4764-b906-58f7dea9180...'

and POST data looks like:

{"headers":{"entries":[]}, "formValues":{"entries":[{"key":"requestedFor", "value":{"type":"string", "value":"user1@corp.local"}},{"key":"description", "value":{"type":"string", "value":"My Blueprint"}},{"key":"provider-datacenter"},{"key":"provider-network"}]}, "affectedElements":["provider-__ASD_PRESENTATION_INSTANCE","provider-datacenter","provider-network"]}'

The response is similar to:

throw 1; < don't be evil' >{"https://@com.vmware.csp.core.cafe.catalog.api.vproxy.vproxy/consumer/catalogItems/859fcd98-90ec-4764...":{"rc":200,"body":"{\"elementUpdates\":[{\"id\":\"provider-__ASD_PRESENTATION_INSTANCE\",\"detailLayout\":null,\"facetValues\":{\"facets\":[{\"type\":\"visibility\",\"value\":{\"type\":\"boolean\",\"value\":false}},{\"type\":\"fixedValue\",\"value\":{\"type\":\"string\",\"value\":\"806a5979-8077-4e13-9ab2-fdad11a147ec\"}} ... {\"type\":\"string\",\"value\":\"network1\"} ...

This response lists the available options too, so could be validated and looks like the form update changes the response just like in the GUI. So this can be automated but not very easy to make the test data and evaluate the result.

Wrt. Custom Forms, it is even more complicated, communicating with Forms API (formsprovider, externalvalues, ...) in multiple steps.

But in general, this looks feasible but not easy to implement.

Reply
0 Kudos