Skip to content

Commit ce12adb

Browse files
committed
POST /testsuites
1 parent fcd29ea commit ce12adb

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name":"TestSuite TS100-B",
3+
"testProjectID":358,
4+
"parentID":358,
5+
"notes":"This is my first TS via REST",
6+
"order":100
7+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/sh
2+
# curl -i -X POST -u dev01:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects
3+
# -i include headers
4+
# -X (HTTP) Specifies a custom request method to use when communicating with the HTTP server
5+
# -u user:password
6+
# --data If you start the data with the letter @, the rest should be a file name to read the data from,
7+
# or - if you want curl to read the data from stdin.
8+
# The contents of the file must already be URL-encoded.
9+
# Multiple files can also be specified.
10+
# Posting data from a file named 'foobar' would thus be done with --data @foobar.
11+
#
12+
echo 'Testing TestLink REST API - POST /testsuites'
13+
curl -i -H "Content-Type: application/json" -X POST --data "@../json/createTestSuite.json" \
14+
-u restadminapikey:followthewitherabbitneo \
15+
http://localhost/development/tlrepo/lib/api/rest/v1/testsuites

0 commit comments

Comments
 (0)