-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#274 - New JSON file output forwarder introduced
- Loading branch information
Georgi Todorov
committed
Sep 27, 2017
1 parent
669f271
commit 30aecab
Showing
23 changed files
with
885 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
src/core/src/main/java/org/sakuli/datamodel/TestAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Sakuli - Testing and Monitoring-Tool for Websites and common UIs. | ||
* | ||
* Copyright 2013 - 2017 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.sakuli.datamodel; | ||
|
||
/** | ||
* Created by georgi on 21/09/17. | ||
*/ | ||
public class TestAction { | ||
private String object; | ||
private String method; | ||
private Object[] args; | ||
private String message; | ||
private String documentationURL; | ||
|
||
private TestAction(String object, String method, Object[] args, String message, String documentationURL) { | ||
this.object = object; | ||
this.method = method; | ||
this.args = args; | ||
this.message = message; | ||
this.documentationURL = documentationURL; | ||
} | ||
|
||
public static TestAction createSakuliTestAction(String object, String method, Object[] args, String message, String documentationURL) { | ||
return new TestAction(object, method, args, message, | ||
createDocumentationURL(documentationURL, object, method)); | ||
} | ||
|
||
public static TestAction createSahiTestAction(String method, String documentationURL) { | ||
return new TestAction(method, method, null, null, documentationURL); | ||
} | ||
|
||
private static String createDocumentationURL(String baseUrl, String clazz, String method) { | ||
return baseUrl + clazz + "." + method; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
|
||
public Object[] getArgs() { | ||
return args; | ||
} | ||
|
||
public String getMethod() { | ||
return method; | ||
} | ||
|
||
public Object getObject() { | ||
return object; | ||
} | ||
|
||
public String getDocumentationURL() { | ||
return documentationURL; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.