-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: automate setup and tear down for record export (#495)
Co-authored-by: hung-nguyen <[email protected]> Co-authored-by: tasshi / Masaharu TASHIRO <[email protected]>
- Loading branch information
1 parent
fb32adb
commit 665c3f1
Showing
3 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
Feature: cli-kintone export command | ||
|
||
Scenario: CliKintoneTest-81 Should return the record contents in CSV format | ||
Given The app "$$TEST_KINTONE_APP_ID_FOR_EXPORT" with "$$TEST_KINTONE_API_TOKEN_FOR_DELETE" has no records | ||
And The app "$$TEST_KINTONE_APP_ID_FOR_EXPORT" has some records as below: | ||
| Text | Number | | ||
| Alice | 10 | | ||
| Bob | 20 | | ||
| Jenny | 30 | | ||
When I run the command with args "record export --base-url $$TEST_KINTONE_BASE_URL --app $$TEST_KINTONE_APP_ID_FOR_EXPORT --api-token $$TEST_KINTONE_API_TOKEN_FOR_EXPORT" | ||
Then I should get the exit code is zero | ||
And The header row of the output message should match with the pattern: "\"Record_number\",\"Text\",\"Number\"" | ||
And The output message should match with the pattern: "\"1\",\"Alice\",\"10\"" | ||
And The output message should match with the pattern: "\"2\",\"Bob\",\"20\"" | ||
And The output message should match with the pattern: "\"3\",\"Jenny\",\"30\"" | ||
And The output message should match with the pattern: "\"\d+\",\"Alice\",\"10\"" | ||
And The output message should match with the pattern: "\"\d+\",\"Bob\",\"20\"" | ||
And The output message should match with the pattern: "\"\d+\",\"Jenny\",\"30\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters