0

I need to call the following curl command during XCUITest, and don't need to worry about parameters and response here.

Could anyone please help me give some suggestions/sample here? Will it be easier to put the command into a shell script? Many thanks!

curl -X PUT -H "Content-Type: application/json" -d '{"membershipId": "111", "approved": "true", "env": "stage"}' http://st.com:8080/abc/sp/auditmember

user10252638
  • 111
  • 4
  • “I need to call the following curl command” Can you explain why? And which? There is a big difference between a UI test and a unit test. – matt Apr 03 '19 at 21:22
  • Hi Matt, thank you for looking at my question, I'm doing UI test here. many thanks! – user10252638 Apr 03 '19 at 22:33
  • And why would a UI test need to call curl? It should just exercise the app, as is. – matt Apr 03 '19 at 23:52
  • This may help https://stackoverflow.com/questions/26971240/how-do-i-run-an-terminal-command-in-a-swift-script-e-g-xcodebuild – Prakash Saravanan May 28 '19 at 13:28

0 Answers0