Skip to content

Commit

Permalink
Merge pull request #20 from Warewolf-ESB/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Chas Digal committed Feb 12, 2015
2 parents f8058fa + e30cc6a commit 690db1c
Show file tree
Hide file tree
Showing 31 changed files with 650 additions and 303 deletions.
2 changes: 1 addition & 1 deletion Dev/Dev2.Activities/Activities/DsfDropBoxFileActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace Dev2.Activities
{

[ToolDescriptorInfo("ControlFlow-Descision", "Drop box", ToolType.Native, "8999E59A-38A3-43BB-A98F-6090C5C9EA1E", "Bob", "1.0.0.0", "c:\\", "Dropbox", "/Warewolf.Studio.Themes.Luna;component/Images.xaml")]
[ToolDescriptorInfo("ControlFlow-Descision", "Drop box", ToolType.Native, "8999E59A-38A3-43BB-A98F-6090C5C9EA1E", "Bob", "1.0.0.0", "c:\\", "Connectors", "/Warewolf.Studio.Themes.Luna;component/Images.xaml")]
public class DsfDropBoxFileActivity : DsfBaseActivity
{
IDropNetClient _dropnetClient;
Expand Down
2 changes: 1 addition & 1 deletion Dev/Dev2.Activities/Activities/DsfWebGetRequestActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

namespace Dev2.Activities
{
[ToolDescriptorInfo("Utility-GetWebRequests", "Web Request", ToolType.Native, "8999E59A-38A3-43BB-A98F-6090C5C9EA1E", "Bob", "1.0.0.0", "c:\\", "Recordset", "/Warewolf.Studio.Themes.Luna;component/Images.xaml")]
[ToolDescriptorInfo("Utility-GetWebRequest", "Web Request", ToolType.Native, "8999E59A-38A3-43BB-A98F-6090C5C9EA1E", "Bob", "1.0.0.0", "c:\\", "Utility", "/Warewolf.Studio.Themes.Luna;component/Images.xaml")]
public class DsfWebGetRequestActivity : DsfActivityAbstract<string>
{
IWebRequestInvoker _webRequestInvoker;
Expand Down
2 changes: 1 addition & 1 deletion Dev/Dev2.Activities/Activities/PathOperations/DsfUnZip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
namespace Unlimited.Applications.BusinessDesignStudio.Activities
// ReSharper restore CheckNamespace
{
[ToolDescriptorInfo("FileFolder-Unzip", "Unzip", ToolType.Native, "8999E59A-38A3-43BB-A98F-6090C5C9EA1E", "Bob", "1.0.0.0", "c:\\", "File And Folder", "/Warewolf.Studio.Themes.Luna;component/Images.xaml")]
[ToolDescriptorInfo("FileFolder-UnZip", "Unzip", ToolType.Native, "8999E59A-38A3-43BB-A98F-6090C5C9EA1E", "Bob", "1.0.0.0", "c:\\", "File And Folder", "/Warewolf.Studio.Themes.Luna;component/Images.xaml")]

public class DsfUnZip : DsfAbstractMultipleFilesActivity, IUnZip, IPathOverwrite, IPathOutput, IPathInput,
IDestinationUsernamePassword
Expand Down
2 changes: 1 addition & 1 deletion Dev/Dev2.Activities/Activities/PathOperations/DsfZip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace Unlimited.Applications.BusinessDesignStudio.Activities
/// Status : New
/// Purpose : To provide an activity that can zip the contents of a file/folder from FTP, FTPS and file system
/// </summary>
[ToolDescriptorInfo("FileFolder-Zip", "Unzip", ToolType.Native, "8999E59A-38A3-43BB-A98F-6090C5C9EA1E", "Bob", "1.0.0.0", "c:\\", "File And Folder", "/Warewolf.Studio.Themes.Luna;component/Images.xaml")]
[ToolDescriptorInfo("FileFolder-Zip", "Zip", ToolType.Native, "8999E59A-38A3-43BB-A98F-6090C5C9EA1E", "Bob", "1.0.0.0", "c:\\", "File And Folder", "/Warewolf.Studio.Themes.Luna;component/Images.xaml")]

public class DsfZip : DsfAbstractMultipleFilesActivity, IZip, IPathInput, IPathOutput, IPathOverwrite,
IDestinationUsernamePassword
Expand Down
2 changes: 2 additions & 0 deletions Dev/Dev2.Common.Interfaces/IRequestServiceNameView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ public interface IRequestServiceNameView : IView
{
void ShowView();
void RequestClose();
bool HasServer(string serverName);
void CreateNewFolder(string newFolderName, string rootPath);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public abstract class UnityBootstrapperForTesting : UnityBootstrapper
{
protected override DependencyObject CreateShell()
{
return Container.Resolve<ShellForTesting>();
return new DependencyObject();
}

protected override void ConfigureContainer()
Expand Down
2 changes: 2 additions & 0 deletions Dev/Warewolf.AcceptanceTesting.Explorer/ExplorerSteps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public void WhenIOpen(string folderName)
Assert.IsNotNull(environmentViewModel);
}

[Given(@"I should see ""(.*)"" folders")]
[When(@"I should see ""(.*)"" folders")]
[Then(@"I should see ""(.*)"" folders")]
public void ThenIShouldSeeFolders(int numberOfFoldersVisible)
{
Expand Down
43 changes: 22 additions & 21 deletions Dev/Warewolf.AcceptanceTesting.Explorer/SaveDialog.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Feature: SaveDialog
Scenario: Creating Folder from Save Dialog under localhost
Given the Save Dialog is opened
And the "localhost" server is visible in save dialog
And I should see "5" folders in "localhost" save dialog
When I open "Folder 1" in "localhost" save dialog
And I should see "5" folders
When I open "Folder 1"
Then I should see "8" children for "Folder 1"
When I create "New Folder" in "localhost"
And I should see "6" folders in "localhost" save dialog
And I should see "6" folders

Scenario: Creating Folder from Save Dialog under folder
Given the Save Dialog is opened
Expand All @@ -22,22 +22,23 @@ Scenario: Creating Folder from Save Dialog under folder
When I create "New Folder" in "Folder 1"
Then I should see "9" children for "Folder 1"

Scenario: Right click Items on folder
Given the Save Dialog is opened
And the "localhost" server is visible in save dialog
And I should see "5" folders in "localhost" save dialog
When I right click on "folder 1"
Then I should see "Rename"
And I should see "Delete"
And I should see "New Folder"
And I shouldn't see "New workflow service"
And I shouldn't see "New Plugin service"
#CODED UI
#Scenario: Right click Items on folder
# Given the Save Dialog is opened
# And the "localhost" server is visible in save dialog
# And I should see "5" folders in "localhost" save dialog
# When I right click on "folder 1"
# Then I should see "Rename"
# And I should see "Delete"
# And I should see "New Folder"
# And I shouldn't see "New workflow service"
# And I shouldn't see "New Plugin service"

Scenario: Saving a Workflow in localhost
Given the Save Dialog is opened
And the "localhost" server is visible in save dialog
And I should see "5" folders in "localhost" save dialog
When I save "Newworkflow" in "localhost"
When I save "localhost/Newworkflow"
Then "NewWorkflow" is visible in "localhost"

Scenario: Saving a Workflow in localhost folder
Expand All @@ -46,7 +47,7 @@ Scenario: Saving a Workflow in localhost folder
And I should see "5" folders in "localhost" save dialog
When I open "Folder 1" in "localhost" save dialog
Then I should see "8" children for "Folder 1"
When I save "Newworkflow" in "Folder 1"
When I save "Folder 1/Newworkflow"
Then "NewWorkflow" is visible in "Folder 1"

Scenario: Save button is Enabled when I enter new name for resource
Expand Down Expand Up @@ -76,7 +77,7 @@ Scenario: Save with duplicate name and expect validation
And I should see "5" folders in "localhost" save dialog
When I open "Folder 1" in "localhost" save dialog
Then I should see "8" children for "Folder 1"
When I save "Savewf" in "Folder 1"
When I save "Folder 1/Savewf"
And validation message is ""
Then I should see "9" children for "Folder 1"
When I enter name "Savewf"
Expand Down Expand Up @@ -141,7 +142,7 @@ Scenario: Opening New workflow and saving
And cancel button is "Enabled"
When I enter name "New"
Then save button is "Enabled"
When I save "New" in "localhost"
When I save "localhost/New"
Then the "New" workflow is saved "True"

Scenario: Opening Save dialog and canceling
Expand Down Expand Up @@ -178,12 +179,12 @@ Scenario: Savve textbox is updating names when selecting resource names
And cancel button is "Enabled"
And the "localhost" server is visible in save dialog
And I should see "5" folders in "localhost" save dialog
When I select "Folder 1" in "localhost" save dialog
When I select "localhost/Folder 1"
When I open "Folder 1" in "localhost" save dialog
Then I should see "8" children for "Folder 1"
When I select "children1" of "Folder 1" in "localhost" save dialog
When I select "localhost/Folder 1/children1"
Then save textbox name is "children1"
When I save "children1"
When I save "localhost/children1"
Then validation message is thrown "True"
Then validation message is "Name already exists"
Then the "children1" workflow is saved "False"
Expand All @@ -195,7 +196,7 @@ Scenario: Path is updating on save dialog when selcting folders
And the path in the title as "localhost\"
And the "localhost" server is visible in save dialog
And I should see "5" folders in "localhost" save dialog
When I select "Folder 1" in "localhost" save dialog
When I select "localhost/Folder 1"
Then the path in the title as "localhost\Folder 1\"
Scenario: Star is representing the workflow is unsaved
Expand Down
Loading

0 comments on commit 690db1c

Please sign in to comment.