2014-02-25 11:15:21 -04:00
@ProcessMakerMichelangelo @RestAPI
2014-02-27 16:46:26 -04:00
Feature : Files Manager Resources Main Tests
R e q u i r e m e n t s :
2014-06-26 10:18:17 -04:00
a w o r k s p a c e w i t h t h e p r o c e s s 1265557095225 f f 5 c 688 f 46031700471 ( " T e s t M i c h e l a n g e l o " ) a l r e a d y l o a d e d
t h e r e a r e t w o o u t p u t d o c u m e n t s i n t h e p r o c e s s
2014-09-08 16:38:17 -04:00
a n d w o r k s p a c e w i t h t h e p r o c e s s 1455892245368 e b e b 11 c 1 a 5001393784 - " P r o c e s s C o m p l e t e B P M N " a l r e a d y l o a d e d " a l r e a d y l o a d e d
2014-02-25 11:15:21 -04:00
2014-06-26 10:18:17 -04:00
Background :
Given t h a t I h a v e a v a l i d a c c e s s _ t o k e n
2014-02-25 11:15:21 -04:00
2014-02-27 16:46:26 -04:00
2014-09-08 16:38:17 -04:00
Scenario Outline : Get a list of main process files manager
Given I r e q u e s t " p r o j e c t / <project> / f i l e - m a n a g e r "
2014-06-26 10:18:17 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
And t h e c o n t e n t t y p e i s " a p p l i c a t i o n / j s o n "
And t h e t y p e i s " a r r a y "
And t h e " n a m e " p r o p e r t y i n r o w 0 e q u a l s " t e m p l a t e s "
And t h e " n a m e " p r o p e r t y i n r o w 1 e q u a l s " p u b l i c "
2014-09-08 16:38:17 -04:00
Examples :
| t e s t _ d e s c r i p t i o n | p r o j e c t |
| G e t l i s t o f p r o c e s s T e s t M i c h e l a n g e l o | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 |
| G e t l i s t o f p r o c e s s P r o c e s s C o m p l e t e B P M N | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 |
Scenario Outline : Get a list public folder of process files manager
Given I r e q u e s t " p r o j e c t / <project> / f i l e - m a n a g e r ? p a t h = p u b l i c "
2014-06-26 10:18:17 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
And t h e c o n t e n t t y p e i s " a p p l i c a t i o n / j s o n "
And t h e t y p e i s " a r r a y "
2014-09-08 16:38:17 -04:00
And t h e r e s p o n s e h a s <records> r e c o r d s
2014-02-25 11:15:21 -04:00
2014-09-08 16:38:17 -04:00
Examples :
| t e s t _ d e s c r i p t i o n | p r o j e c t | r e c o r d s |
| G e t l i s t o f p r o c e s s T e s t M i c h e l a n g e l o | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | 0 |
2014-09-24 15:38:52 -04:00
| G e t l i s t o f p r o c e s s P r o c e s s C o m p l e t e B P M N | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | 4 |
2014-09-08 16:38:17 -04:00
Scenario Outline : Get a list templates folder of process files manager
Given I r e q u e s t " p r o j e c t / <project> / f i l e - m a n a g e r ? p a t h = t e m p l a t e s "
2014-06-26 10:18:17 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
And t h e c o n t e n t t y p e i s " a p p l i c a t i o n / j s o n "
And t h e t y p e i s " a r r a y "
And t h e r e s p o n s e h a s 2 r e c o r d s
2014-02-25 11:15:21 -04:00
2014-09-08 16:38:17 -04:00
Examples :
| t e s t _ d e s c r i p t i o n | p r o j e c t | r e c o r d s |
| G e t l i s t o f p r o c e s s T e s t M i c h e l a n g e l o | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | 2 |
| G e t l i s t o f p r o c e s s P r o c e s s C o m p l e t e B P M N | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | 2 |
2014-06-26 10:18:17 -04:00
Scenario Outline : Create files and subfolders
2014-03-06 09:28:34 -04:00
Given P O S T t h i s d a t a :
2014-06-26 10:18:17 -04:00
"""
{
" p r f _ f i l e n a m e " : " <prf_filename> " ,
" p r f _ p a t h " : " <prf_path> " ,
" p r f _ c o n t e n t " : " <prf_content> "
}
"""
2014-09-08 16:38:17 -04:00
And I r e q u e s t " p r o j e c t / <project> / f i l e - m a n a g e r "
2014-06-26 10:18:17 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e <http_code>
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
And t h e c o n t e n t t y p e i s " a p p l i c a t i o n / j s o n "
And t h e t y p e i s " <type> "
And s t o r e " p r f _ u i d " i n s e s s i o n a r r a y a s v a r i a b l e " p r f _ u i d _ <prf_number> "
Examples :
2014-09-08 16:38:17 -04:00
| t e s t _ d e s c r i p t i o n | p r o j e c t | p r f _ f i l e n a m e | p r f _ p a t h | p r f _ c o n t e n t | h t t p _ c o d e | t y p e | p r f _ n u m b e r |
| i n t o p u b l i c f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 1 . t x t | p u b l i c / | o n l y t e x t | 2 0 0 | o b j e c t | 0 |
| i n t o m a i l t e m p l a t e s f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 2 . h t m l | t e m p l a t e s / | <h1> T e s t </h1> <p> h t m l t e s t </p> | 2 0 0 | o b j e c t | 1 |
| i n t o p u b l i c s u b f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 3 | p u b l i c / p u b l i c _ s u b f o l d e r | t e s t | 2 0 0 | o b j e c t | 2 |
| i n t o m a i l t e m p l a t e s s u b f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 4 | t e m p l a t e s / t e m p l a t e s _ s u b f o l d e r | t e s t | 2 0 0 | o b j e c t | 3 |
| i n t o p u b l i c f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 1 . t x t | p u b l i c / | o n l y t e x t | 2 0 0 | o b j e c t | 8 |
| i n t o m a i l t e m p l a t e s f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 2 . h t m l | t e m p l a t e s / | <h1> T e s t </h1> <p> h t m l t e s t </p> | 2 0 0 | o b j e c t | 9 |
| i n t o p u b l i c s u b f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 3 | p u b l i c / p u b l i c _ s u b f o l d e r | t e s t | 2 0 0 | o b j e c t | 1 0 |
| i n t o m a i l t e m p l a t e s s u b f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 4 | t e m p l a t e s / t e m p l a t e s _ s u b f o l d e r | t e s t | 2 0 0 | o b j e c t | 1 1 |
2014-06-26 10:18:17 -04:00
Scenario : Create files and subfolders with same name in path public
2014-03-06 09:28:34 -04:00
Given P O S T t h i s d a t a :
2014-06-26 10:18:17 -04:00
"""
{
" p r f _ f i l e n a m e " : " f i l e _ t e s t _ 1 . t x t " ,
" p r f _ p a t h " : " p u b l i c / " ,
" p r f _ c o n t e n t " : " o n l y t e x t "
}
"""
And I r e q u e s t " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r "
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 400
And t h e r e s p o n s e s t a t u s m e s s a g e s h o u l d h a v e t h e f o l l o w i n g t e x t " a l r e a d y e x i s t s "
2014-03-06 09:28:34 -04:00
2014-06-26 10:18:17 -04:00
Scenario : Create files and subfolders with same name in path templates
Given P O S T t h i s d a t a :
"""
{
" p r f _ f i l e n a m e " : " f i l e _ t e s t _ 2 . h t m l " ,
" p r f _ p a t h " : " t e m p l a t e s / " ,
" p r f _ c o n t e n t " : " <h1> T e s t </h1> <p> h t m l t e s t </p> "
}
"""
And I r e q u e s t " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r "
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 400
And t h e r e s p o n s e s t a t u s m e s s a g e s h o u l d h a v e t h e f o l l o w i n g t e x t " a l r e a d y e x i s t s "
2014-03-06 09:28:34 -04:00
2014-06-26 10:18:17 -04:00
Scenario Outline : Update files by updating the content
2014-02-25 11:15:21 -04:00
Given P U T t h i s d a t a :
2014-06-26 10:18:17 -04:00
"""
{
" p r f _ c o n t e n t " : " <prf_content> "
}
"""
And t h a t I w a n t t o u p d a t e a r e s o u r c e w i t h t h e k e y " p r f _ u i d " s t o r e d i n s e s s i o n a r r a y a s v a r i a b l e " p r f _ u i d _ <prf_number> "
2014-09-08 16:38:17 -04:00
And I r e q u e s t " p r o j e c t / <project> / f i l e - m a n a g e r "
2014-06-26 10:18:17 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e <http_code>
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
And t h e c o n t e n t t y p e i s " a p p l i c a t i o n / j s o n "
And t h e t y p e i s " <type> "
Examples :
2014-09-08 16:38:17 -04:00
| t e s t _ d e s c r i p t i o n . p m | p r o j e c t | p r f _ f i l e n a m e | p r f _ c o n t e n t | h t t p _ c o d e | t y p e | p r f _ n u m b e r |
| p u t i n t o p u b l i c f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 1 . t x t | o n l y t e x t - m o d i f i e d | 2 0 0 | o b j e c t | 0 |
| p u t i n t o m a i l t e m p l a t e s f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 2 . h t m l | <h1> T e s t </h1> <p> h t m l t e s t </p> <i> m o d i f i e d </i> | 2 0 0 | o b j e c t | 1 |
| p u t i n t o p u b l i c s u b f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 3 | p u t t e s t | 2 0 0 | o b j e c t | 2 |
| p u t i n t o m a i l t e m p l a t e s s u b f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 4 | p u t t e s t | 2 0 0 | o b j e c t | 3 |
| p u t i n t o p u b l i c f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 1 . t x t | o n l y t e x t - m o d i f i e d | 2 0 0 | o b j e c t | 8 |
| p u t i n t o m a i l t e m p l a t e s f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 2 . h t m l | <h1> T e s t </h1> <p> h t m l t e s t </p> <i> m o d i f i e d </i> | 2 0 0 | o b j e c t | 9 |
| p u t i n t o p u b l i c s u b f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 3 | p u t t e s t | 2 0 0 | o b j e c t | 1 0 |
| p u t i n t o m a i l t e m p l a t e s s u b f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 4 | p u t t e s t | 2 0 0 | o b j e c t | 1 1 |
2014-06-26 10:18:17 -04:00
Scenario Outline : Get a single Files Manager and check some properties
2014-03-12 15:16:15 -04:00
Given t h a t I w a n t t o g e t a r e s o u r c e w i t h t h e k e y " p r f _ u i d " s t o r e d i n s e s s i o n a r r a y a s v a r i a b l e " p r f _ u i d _ <prf_number> "
2014-09-08 16:38:17 -04:00
Given I r e q u e s t " p r o j e c t / <project> / f i l e - m a n a g e r "
2014-06-26 10:18:17 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
And t h e c o n t e n t t y p e i s " a p p l i c a t i o n / j s o n "
And t h e t y p e i s " o b j e c t "
And t h a t " p r f _ f i l e n a m e " i s s e t t o " <prf_filename> "
And t h a t " p r f _ p a t h " i s s e t t o " <prf_path> "
And t h a t " p r f _ c o n t e n t " i s s e t t o " <prf_content> "
2014-03-06 09:28:34 -04:00
2014-06-26 10:18:17 -04:00
Examples :
2014-09-08 16:38:17 -04:00
| t e s t _ d e s c r i p t i o n . p m | p r o j e c t | p r f _ f i l e n a m e | p r f _ c o n t e n t | h t t p _ c o d e | t y p e | p r f _ n u m b e r | r o w | p r f _ p a t h |
| p u t i n t o p u b l i c f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 1 . t x t | o n l y t e x t - m o d i f i e d | 2 0 0 | o b j e c t | 0 | 1 | p u b l i c / |
| p u t i n t o m a i l t e m p l a t e s f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 2 . h t m l | <h1> T e s t </h1> <p> h t m l t e s t </p> <i> m o d i f i e d </i> | 2 0 0 | o b j e c t | 1 | 1 | t e m p l a t e s / |
| p u t i n t o p u b l i c s u b f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 3 | p u t t e s t | 2 0 0 | o b j e c t | 2 | 0 | p u b l i c / p u b l i c _ s u b f o l d e r |
| p u t i n t o m a i l t e m p l a t e s s u b f o l d e r . p m | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 | f i l e _ t e s t _ 4 | p u t t e s t | 2 0 0 | o b j e c t | 3 | 0 | t e m p l a t e s / t e m p l a t e s _ s u b f o l d e r |
| p u t i n t o p u b l i c f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 1 . t x t | o n l y t e x t - m o d i f i e d | 2 0 0 | o b j e c t | 8 | 1 | p u b l i c / |
| p u t i n t o m a i l t e m p l a t e s f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 2 . h t m l | <h1> T e s t </h1> <p> h t m l t e s t </p> <i> m o d i f i e d </i> | 2 0 0 | o b j e c t | 9 | 1 | t e m p l a t e s / |
| p u t i n t o p u b l i c s u b f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 3 | p u t t e s t | 2 0 0 | o b j e c t | 1 0 | 0 | p u b l i c / p u b l i c _ s u b f o l d e r |
| p u t i n t o m a i l t e m p l a t e s s u b f o l d e r . p m x | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 | f i l e _ t e s t _ 4 | p u t t e s t | 2 0 0 | o b j e c t | 1 1 | 0 | t e m p l a t e s / t e m p l a t e s _ s u b f o l d e r |
2014-03-06 09:28:34 -04:00
2014-06-26 10:18:17 -04:00
Scenario Outline : Upload files to same folders
Given P O S T I w a n t t o u p l o a d t h e f i l e " <file> " t o p a t h " <prf_path> " . U r l " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r "
And s t o r e " p r f _ u i d " i n s e s s i o n a r r a y a s v a r i a b l e " p r f _ u i d _ <prf_number> "
2014-03-06 09:28:34 -04:00
2014-06-26 10:18:17 -04:00
Examples :
2014-07-10 14:50:18 -04:00
| f i l e | p r f _ p a t h | p r f _ n u m b e r |
| t e s t 1 . h t m l | t e m p l a t e s | 4 |
| t e s t 2 . h t m l | t e m p l a t e s | 5 |
| t e s t . t x t | p u b l i c | 6 |
| T e s t Q A . h t m l | t e m p l a t e s | 7 |
2014-03-05 09:58:35 -04:00
2014-03-12 15:16:15 -04:00
2014-06-26 10:18:17 -04:00
Scenario Outline : Verify if TestQA was overwrited
2014-03-12 15:16:15 -04:00
Given t h a t I w a n t t o g e t a r e s o u r c e w i t h t h e k e y " p r f _ u i d " s t o r e d i n s e s s i o n a r r a y a s v a r i a b l e " p r f _ u i d _ <prf_number> "
Given I r e q u e s t " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r "
2014-06-26 10:18:17 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
And t h e c o n t e n t t y p e i s " a p p l i c a t i o n / j s o n "
And t h e t y p e i s " o b j e c t "
And t h a t " p r f _ f i l e n a m e " i s s e t t o " <prf_filename> "
And t h a t " p r f _ c o n t e n t " i s s e t t o " <prf_content> "
2014-03-12 15:16:15 -04:00
Examples :
2014-06-26 10:18:17 -04:00
| p r f _ f i l e n a m e | p r f _ c o n t e n t | p r f _ n u m b e r |
| T e s t Q A . h t m l | T e s t Q A - c u a n d o s e r e a l i z a l a s o b r e e s c r i t u r a d e s d e u p l o a d | 7 |
2014-03-06 09:28:34 -04:00
2014-02-25 11:15:21 -04:00
2014-06-26 10:18:17 -04:00
Scenario Outline : Update the overwritten file to return to their original values
2014-03-06 16:02:02 -04:00
Given P U T t h i s d a t a :
2014-06-26 10:18:17 -04:00
"""
{
" p r f _ c o n t e n t " : " T e s t Q A "
}
"""
And t h a t I w a n t t o u p d a t e a r e s o u r c e w i t h t h e k e y " p r f _ u i d " s t o r e d i n s e s s i o n a r r a y a s v a r i a b l e " p r f _ u i d _ <prf_number> "
And I r e q u e s t " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r "
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
And t h e c o n t e n t t y p e i s " a p p l i c a t i o n / j s o n "
And t h a t " p r f _ f i l e n a m e " i s s e t t o " T e s t Q A . h t m l "
And t h a t " p r f _ c o n t e n t " i s s e t t o " T e s t Q A "
Examples :
| p r f _ f i l e n a m e | p r f _ c o n t e n t | p r f _ n u m b e r |
| T e s t Q A . h t m l | T e s t Q A - c u a n d o s e r e a l i z a l a s o b r e e s c r i t u r a d e s d e u p l o a d | 7 |
2014-04-15 09:07:47 -04:00
2014-03-06 16:02:02 -04:00
2014-06-26 10:18:17 -04:00
Scenario Outline : Download files
Given I r e q u e s t " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r / p r f _ u i d / d o w n l o a d " w i t h t h e k e y " p r f _ u i d " s t o r e d i n s e s s i o n a r r a y a s v a r i a b l e " p r f _ u i d _ <prf_number> "
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
2014-03-06 16:02:02 -04:00
2014-06-26 10:18:17 -04:00
Examples :
2014-09-08 16:38:17 -04:00
| t e s t _ d e s c r i p t i o n | p r f _ n u m b e r | p r o j e c t |
| D o w n l o a d f i l e | 0 | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 |
| D o w n l o a d f i l e | 1 | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 |
| D o w n l o a d f i l e | 2 | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 |
| D o w n l o a d f i l e | 4 | 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 |
| D o w n l o a d f i l e | 8 | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 |
| D o w n l o a d f i l e | 9 | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 |
| D o w n l o a d f i l e | 1 0 | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 |
| D o w n l o a d f i l e | 1 1 | 1 4 5 5 8 9 2 2 4 5 3 6 8 e b e b 1 1 c 1 a 5 0 0 1 3 9 3 7 8 4 |
2014-03-06 09:28:34 -04:00
2014-06-26 10:18:17 -04:00
Scenario Outline : Delete file
2014-03-05 09:58:35 -04:00
Given t h a t I w a n t t o d e l e t e a r e s o u r c e w i t h t h e k e y " p r f _ u i d " s t o r e d i n s e s s i o n a r r a y a s v a r i a b l e " p r f _ u i d _ <prf_number> "
And I r e q u e s t " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r "
2014-06-26 10:18:17 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
2014-02-25 11:15:21 -04:00
2014-06-26 10:18:17 -04:00
Examples :
| t e s t _ d e s c r i p t i o n | p r f _ n u m b e r |
| d e l e t e p u b l i c f o l d e r | 0 |
| d e l e t e m a i l t e m p l a t e s f o l d e r | 1 |
| d e l e t e p u b l i c s u b f o l d e r | 2 |
| d e l e t e m a i l t e m p l a t e s s u b f o l d e r | 3 |
| d e l e t e m a i l t e m p l a t e s s u b f o l d e r | 4 |
| d e l e t e m a i l t e m p l a t e s s u b f o l d e r | 5 |
| d e l e t e m a i l t e m p l a t e s s u b f o l d e r | 6 |
2014-08-08 08:58:22 -04:00
| d e l e t e | 7 |
2014-09-08 16:38:17 -04:00
| d e l e t e | 8 |
| d e l e t e | 9 |
| d e l e t e | 1 0 |
| d e l e t e | 1 1 |
2014-02-25 11:15:21 -04:00
2014-03-06 09:28:34 -04:00
2014-06-26 10:18:17 -04:00
Scenario Outline : Delete folder
2014-03-06 09:28:34 -04:00
Given t h a t I w a n t t o d e l e t e t h e f o l d e r
And I r e q u e s t " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r / f o l d e r ? p a t h = <prf_path> "
2014-03-06 16:02:02 -04:00
Then t h e r e s p o n s e s t a t u s c o d e s h o u l d b e 200
And t h e r e s p o n s e c h a r s e t i s " U T F - 8 "
2014-02-25 11:15:21 -04:00
2014-06-26 10:18:17 -04:00
Examples :
| t e s t _ d e s c r i p t i o n | p r f _ p a t h |
| d e l e t e p u b l i c s u b f o l d e r | t e m p l a t e s / t e m p l a t e s _ s u b f o l d e r |
| d e l e t e t e m p l a t e s s u b f o l d e r | p u b l i c / p u b l i c _ s u b f o l d e r |
#BUG 15207, The "Upload" accepts files with other extensions
2014-07-03 08:56:08 -04:00
2014-08-01 08:48:38 -04:00
Scenario Outline : Upload files with incorret extension ".exe" - "Project - Process Complete BPMN"
2014-08-08 08:58:22 -04:00
Given P O S T I w a n t t o u p l o a d t h e f i l e " <file> " t o p a t h " <prf_path> " . U r l " p r o j e c t / 1 2 6 5 5 5 7 0 9 5 2 2 5 f f 5 c 6 8 8 f 4 6 0 3 1 7 0 0 4 7 1 / f i l e - m a n a g e r "
#And store "prf_uid" in session array as variable "prf_uid_<prf_number>"
2014-07-03 08:56:08 -04:00
And t h e r e s p o n s e s t a t u s m e s s a g e s h o u l d h a v e t h e f o l l o w i n g t e x t " i n c o r r e c t e x t e n s i o n "
Examples :
2014-08-08 08:58:22 -04:00
| f i l e | p r f _ p a t h | p r f _ n u m b e r |
2014-09-08 16:38:17 -04:00
| f i l e m a n a g e r . e x e | t e m p l a t e s | 1 |