Skip to content

Commit

Permalink
chore: add note and format
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-cybo committed Dec 5, 2023
1 parent 7ed3cfe commit c16e9f2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions features/export.feature
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ Feature: cli-kintone export command
And I have a directory "exported-attachments"
When I run the command with args "record export --base-url $$TEST_KINTONE_BASE_URL --app $APP_ID --api-token $API_TOKEN --attachments-dir exported-attachments"
Then I should get the exit code is zero
# [\/\\\\] is used to match both Windows and Unix path separators
And The output message should match with the data below:
| Record_number | Text | Attachment |
| $RECORD_NUMBERS[0] | Alice | Attachment-$RECORD_NUMBERS[0][\/\\\\]file1.txt |
| Record_number | Text | Attachment |
| $RECORD_NUMBERS[0] | Alice | Attachment-$RECORD_NUMBERS[0][\/\\\\]file1.txt |
And The directory "exported-attachments" should contain files as below:
| FilePath | FileName | Content |
| Attachment-$RECORD_NUMBERS[0] | file1.txt | 123 |
Expand All @@ -138,7 +139,7 @@ Feature: cli-kintone export command
When I run the command with args "record export --base-url $$TEST_KINTONE_BASE_URL --app $APP_ID --api-token $API_TOKEN --attachments-dir new-directory"
Then I should get the exit code is zero
And The output message should match with the data below:
| Record_number | Text | Attachment |
| Record_number | Text | Attachment |
| $RECORD_NUMBERS[0] | Alice | Attachment-$RECORD_NUMBERS[0][\/\\\\]file1.txt |
And The directory "new-directory" should contain files as below:
| FilePath | FileName | Content |
Expand All @@ -158,7 +159,7 @@ Feature: cli-kintone export command
When I run the command with args "record export --base-url $$TEST_KINTONE_BASE_URL --app $APP_ID --api-token $API_TOKEN --attachments-dir exported-attachments"
Then I should get the exit code is zero
And The output message should match with the data below:
| Record_number | Text | Attachment |
| Record_number | Text | Attachment |
| $RECORD_NUMBERS[0] | Alice | Attachment-$RECORD_NUMBERS[0][\/\\\\]file1.txt |
| $RECORD_NUMBERS[1] | Bob | Attachment-$RECORD_NUMBERS[1][\/\\\\]file2.txt |
And The directory "exported-attachments" should contain files as below:
Expand All @@ -179,7 +180,7 @@ Feature: cli-kintone export command
When I run the command with args "record export --base-url $$TEST_KINTONE_BASE_URL --app $APP_ID --api-token $API_TOKEN --attachments-dir exported-attachments"
Then I should get the exit code is zero
And The output message should match with the data below:
| Record_number | Text | Attachment |
| Record_number | Text | Attachment |
| $RECORD_NUMBERS[0] | Alice | Attachment-$RECORD_NUMBERS[0][\/\\\\]file1.txt\nAttachment-$RECORD_NUMBERS[0][\/\\\\]file2.txt |
And The directory "exported-attachments" should contain files as below:
| FilePath | FileName | Content |
Expand All @@ -198,7 +199,7 @@ Feature: cli-kintone export command
When I run the command with args "record export --base-url $$TEST_KINTONE_BASE_URL --app $APP_ID --api-token $API_TOKEN --attachments-dir exported-attachments"
Then I should get the exit code is zero
And The output message should match with the data below:
| Record_number | Text | Attachment |
| Record_number | Text | Attachment |
| $RECORD_NUMBERS[0] | Alice | Attachment-$RECORD_NUMBERS[0][\/\\\\]file1.txt |
And The directory "exported-attachments" should contain files as below:
| FilePath | FileName | Content |
Expand Down

0 comments on commit c16e9f2

Please sign in to comment.