11Feature : Export the repository to an XML file
22 In order to export the repository (or part of the repository) to an XML file
33 As a user that is logged into the shell
4- I want to be able to "session:export:view " command to export the repository to an XML file.
4+ I want to be able to "session:export" command to export the repository to an XML file.
55
66 Background :
77 Given that I am logged in as "testuser"
88 And the file "foobar.xml" does not exist
99 And the "session_data.xml" fixtures are loaded
1010
1111 Scenario : Export the root
12- Given I execute the "session:export:view / foobar.xml" command
12+ Given I execute the "session:export / foobar.xml" command
1313 Then the command should not fail
1414 And the file "foobar.xml" should exist
1515 And the xpath count "/sv:node" is "1" in file "foobar.xml"
1616 And the xpath count "/sv:node/sv:node" is "1" in file "foobar.xml"
1717
1818 Scenario : Export a subtree
19- Given I execute the "session:export:view /tests_general_base foobar.xml" command
19+ Given I execute the "session:export /tests_general_base foobar.xml" command
2020 Then the file "foobar.xml" should exist
2121 And the command should not fail
2222
2323 Scenario : Export with an invalid path
24- Given I execute the "session:export:view cms foobar.xml" command
24+ Given I execute the "session:export cms foobar.xml" command
2525 Then the command should fail
2626 And the output should contain:
2727 """
@@ -30,26 +30,26 @@ Feature: Export the repository to an XML file
3030
3131 Scenario : Export to an existing file (should overwrite as --no-interaction is specified)
3232 Given the file "foobar.xml" exists
33- And I execute the "session:export:view /tests_general_base foobar.xml --no-interaction" command
33+ And I execute the "session:export /tests_general_base foobar.xml --no-interaction" command
3434 Then the command should not fail
3535
3636 Scenario : Export non recursive
37- Given I execute the "session:export:view /tests_general_base foobar.xml --no-recurse" command
37+ Given I execute the "session:export /tests_general_base foobar.xml --no-recurse" command
3838 Then the command should not fail
3939 And the file "foobar.xml" should exist
4040 And the xpath count "/sv:node" is "1" in file "foobar.xml"
4141 And the xpath count "/sv:node/sv:node" is "0" in file "foobar.xml"
4242
4343 Scenario : Export and skip binaries
44- Given I execute the "session:export:view / foobar.xml --skip-binary" command
44+ Given I execute the "session:export / foobar.xml --skip-binary" command
4545 Then the command should not fail
4646
4747 Scenario : Export the document view
48- Given I execute the "session:export:view / foobar.xml --document" command
48+ Given I execute the "session:export / foobar.xml --document" command
4949 Then the command should not fail
5050
5151 Scenario : Export the document view in pretty way
52- Given I execute the "session:export:view / foobar.xml --pretty" command
52+ Given I execute the "session:export / foobar.xml --pretty" command
5353 Then the command should not fail
5454 And the file "foobar.xml" should exist
5555 And the xpath count "/sv:node" is "1" in file "foobar.xml"
0 commit comments