Skip to content

Commit 6ea6990

Browse files
committed
more examples
1 parent f7d21af commit 6ea6990

3 files changed

Lines changed: 51 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name":"Test Scenarios for a Window",
3+
"testSuiteID":378,"testProjectID":358,
4+
"preconditions":"No preconditions for this testcase.
5+
<br>If you use an array [] can be empty
6+
<br>If you need to use a object {}",
7+
"order":100,"authorID":1,"importance":2,"executionType":1,
8+
"summary":
9+
"<br>1. Check if default window size is correct
10+
<br>2. Check if child window size is correct
11+
<br>3. Check if there is any field on page with default focus (in general, the focus should be set on first input field of the screen)
12+
<br>4. Check if child windows are getting closed on closing parent/opener window
13+
<br>5. If child window is opened, user should not be able to use or update any field on background or parent window
14+
<br>6. Check window minimize, maximize and close functionality
15+
<br>7. Check if window is re-sizable
16+
<br>8. Check scroll bar functionality for parent and child windows
17+
<br>9. Check cancel button functionality for child window"
18+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 - GET /testprojects/374'
13+
curl -i -X GET -u 524993143f974f97903f5565a783594b:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects/374
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
clear
13+
echo '*****************************************************************'
14+
echo 'Testing TestLink REST API - GET /testprojects/Slim+REST+Framework'
15+
echo ''
16+
echo 'We have added + to escape BLANK IN Test Project Name'
17+
echo '*****************************************************************'
18+
echo ''
19+
echo ''
20+
curl -i -X GET -u 524993143f974f97903f5565a783594b:dev01 http://localhost/development/tlrepo/lib/api/rest/v1/testprojects/Slim+REST+Framework

0 commit comments

Comments
 (0)