Commit 5992a24 1 parent fa02a52 commit 5992a24 Copy full SHA for 5992a24
File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,25 @@ All possible attributes that can be mocked are listed below:
45
45
46
46
### Execute Shell command
47
47
48
- TODO
48
+ Fibs gives you also ability to run any shell command on macOS from UI test target.
49
+ This could be useful for running special mocking scripts that modifies your tested system.
50
+ To run shell command hit ` localhost:8080/command ` , example cURL:
51
+ ``` bash
52
+ curl -v\
53
+ -X POST\
54
+ -H " Content-Type: application/json" \
55
+ -H " Accept: application/json" \
56
+ -d " { \" command\" : \" echo 'Hello World'\" }" \
57
+ " localhost:8080/command"
58
+ ```
59
+ Parameters of such call are:
60
+ - ` command ` - raw string command that you want to run on hosting system
61
+
62
+ Also, response for this request is synchronous, which means you can later process it back in UITests target.
63
+ For the request above, the response would be:
64
+ ``` bash
65
+ {" raw_response" :" Hello World" }
66
+ ```
49
67
50
68
## Instalation
51
69
@@ -57,4 +75,4 @@ pod 'Fibs'
57
75
58
76
### Brew
59
77
60
- TODO
78
+ TODO
You can’t perform that action at this time.
0 commit comments