1
1
Feature : Export the repository to an XML file
2
2
In order to export the repository (or part of the repository) to an XML file
3
3
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.
5
5
6
6
Background :
7
7
Given that I am logged in as "testuser"
8
8
And the file "foobar.xml" does not exist
9
9
And the "session_data.xml" fixtures are loaded
10
10
11
11
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
13
13
Then the command should not fail
14
14
And the file "foobar.xml" should exist
15
15
And the xpath count "/sv:node" is "1" in file "foobar.xml"
16
16
And the xpath count "/sv:node/sv:node" is "1" in file "foobar.xml"
17
17
18
18
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
20
20
Then the file "foobar.xml" should exist
21
21
And the command should not fail
22
22
23
23
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
25
25
Then the command should fail
26
26
And the output should contain:
27
27
"""
@@ -30,26 +30,26 @@ Feature: Export the repository to an XML file
30
30
31
31
Scenario : Export to an existing file (should overwrite as --no-interaction is specified)
32
32
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
34
34
Then the command should not fail
35
35
36
36
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
38
38
Then the command should not fail
39
39
And the file "foobar.xml" should exist
40
40
And the xpath count "/sv:node" is "1" in file "foobar.xml"
41
41
And the xpath count "/sv:node/sv:node" is "0" in file "foobar.xml"
42
42
43
43
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
45
45
Then the command should not fail
46
46
47
47
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
49
49
Then the command should not fail
50
50
51
51
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
53
53
Then the command should not fail
54
54
And the file "foobar.xml" should exist
55
55
And the xpath count "/sv:node" is "1" in file "foobar.xml"
0 commit comments