Skip to content

Commit

Permalink
#5, #6, tagged v1.6.2; removed unnecessary codes, cleaned the build.g…
Browse files Browse the repository at this point in the history
…radle
  • Loading branch information
kazurayam committed Feb 21, 2024
1 parent e508a59 commit d11c097
Show file tree
Hide file tree
Showing 32 changed files with 676 additions and 378 deletions.
86 changes: 86 additions & 0 deletions .cache/Keywords/com__example__MiniScreenshotDriver
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"keywordFileContentHash": "0CD2B4CC31C8335F2EE0E703066984B2",
"keywordClasses": [
{
"name": "com.example.MiniScreenshotDriver",
"keywordMethods": [
{
"name": "takeEntirePageImage",
"parameters": [
{
"name": "timeout",
"initialExpression": "",
"type": {
"fullClassName": "java.lang.Integer",
"unresolvedClassName": "Integer",
"isArray": false,
"isGnericsPlaceHolder": false,
"hasImmutableClassName": false,
"genericsTypes": [],
"errorOnParsing": false
}
}
],
"javadoc": "/**\n\t * Capture a entire-page screenshot of a web page and return BufferedImage object.\n\t * We get access to the page via the WebDriver object obtained by DriverFactory.getWebDriver()\n\t *\n\t * @timeout millisecond, wait for page to displayed stable after scrolling downward\n\t * @return BufferedImage\n\t */"
},
{
"name": "saveEntirePageImage",
"parameters": [
{
"name": "file",
"initialExpression": "",
"type": {
"fullClassName": "java.io.File",
"unresolvedClassName": "File",
"isArray": false,
"isGnericsPlaceHolder": false,
"hasImmutableClassName": false,
"genericsTypes": [],
"errorOnParsing": false
}
},
{
"name": "timeout",
"initialExpression": "",
"type": {
"fullClassName": "java.lang.Integer",
"unresolvedClassName": "Integer",
"isArray": false,
"isGnericsPlaceHolder": false,
"hasImmutableClassName": false,
"genericsTypes": [],
"errorOnParsing": false
}
}
],
"javadoc": "/**\n\t * Capture a entire-page screenshot of a web page and save PNG image into file.\n\t * We get access to the page via the WebDriver object obtained by DriverFactory.getWebDriver()\n\t *\n\t * @param file output file\n\t * @param timeout millisecond\n\t */"
},
{
"name": "takeEntirePageImage",
"parameters": [],
"javadoc": ""
},
{
"name": "saveEntirePageImage",
"parameters": [
{
"name": "file",
"initialExpression": "",
"type": {
"fullClassName": "java.io.File",
"unresolvedClassName": "File",
"isArray": false,
"isGnericsPlaceHolder": false,
"hasImmutableClassName": false,
"genericsTypes": [],
"errorOnParsing": false
}
}
],
"javadoc": ""
}
]
}
],
"javadocParsed": true
}
10 changes: 10 additions & 0 deletions .cache/Keywords/com__kazurayam__junit4ks__IgnoreRest
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"keywordFileContentHash": "8902B458046F1E96EAADAB3CDF2ED152",
"keywordClasses": [
{
"name": "com.kazurayam.junit4ks.IgnoreRest",
"keywordMethods": []
}
],
"javadocParsed": true
}
10 changes: 10 additions & 0 deletions .cache/Keywords/com__kazurayam__junit4ks__IgnoreRestHelper
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"keywordFileContentHash": "9DA4B40FE183109FC5F18026FE625B84",
"keywordClasses": [
{
"name": "com.kazurayam.junit4ks.IgnoreRestHelper",
"keywordMethods": []
}
],
"javadocParsed": true
}
14 changes: 14 additions & 0 deletions .cache/Keywords/com__kazurayam__junit4ks__IgnoreRestRule
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"keywordFileContentHash": "7E06CFC77BEDA148BBD8F65398B23C04",
"keywordClasses": [
{
"name": "com.kazurayam.junit4ks.IgnoreRestRule",
"keywordMethods": []
},
{
"name": "com.kazurayam.junit4ks.IgnoreRestRule$1",
"keywordMethods": []
}
],
"javadocParsed": true
}
10 changes: 10 additions & 0 deletions .cache/Keywords/com__kazurayam__junit4ks__IgnoreRestSupportRunner
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"keywordFileContentHash": "C71DF166CBB168C6CE0865136413743D",
"keywordClasses": [
{
"name": "com.kazurayam.junit4ks.IgnoreRestSupportRunner",
"keywordMethods": []
}
],
"javadocParsed": true
}
70 changes: 70 additions & 0 deletions .cache/Keywords/com__kazurayam__junit4ks__JUnitCustomKeywords
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"keywordFileContentHash": "B4B34D235001837362BB14E22EF88AA0",
"keywordClasses": [
{
"name": "com.kazurayam.junit4ks.JUnitCustomKeywords",
"keywordMethods": [
{
"name": "runWithJUnitRunner",
"parameters": [
{
"name": "junitRunnerClass",
"initialExpression": "",
"type": {
"fullClassName": "java.lang.Class",
"unresolvedClassName": "Class",
"isArray": false,
"isGnericsPlaceHolder": false,
"hasImmutableClassName": false,
"genericsTypes": [],
"errorOnParsing": false
}
},
{
"name": "flowControl",
"initialExpression": "",
"type": {
"fullClassName": "com.kms.katalon.core.model.FailureHandling",
"unresolvedClassName": "FailureHandling",
"isArray": false,
"isGnericsPlaceHolder": false,
"hasImmutableClassName": false,
"genericsTypes": [],
"errorOnParsing": false
}
}
],
"javadoc": "/**\n\t * Example:\n\t *\n\t * You can run the following test case `Test Cases/test/CalculatorTestRunner` in Katalon Studio\n\t * just as you run a usual test case by clicking the Run button.\n\t *\n\t * Test Case:\n\t * \u003cPRE\u003e\n\t * import junittutorial.CalculatorTest\n\t * CustomKeywords.\u0027com.kazurayam.ksbackyard.junit.JUnitCustomKeywordsTest.runWithJUnitRunner\u0027(CalculatorTest.class)\n\t * \u003c/PRE\u003e\n\t *\n\t * The following is a JUnit test (localated at Include/scripts/groovy/junittutorial/CalculatorTest.groovy)\n\t * executed by the above test case:\n\t * \u003cPRE\u003e\n\t * package junittutorial\n\t *\n\t * import static org.hamcrest.CoreMatchers.*\n\t * import static org.junit.Assert.*\n\t *\n\t * import org.junit.Test\n\t * import org.junit.runner.RunWith\n\t * import org.junit.runners.JUnit4\n\t *\n\t * @RunWith(JUnit4.class)\n\t * class CalculatorTest {\n\t * \t@Test\n\t * \tvoid testMultiply() {\n\t * \t\tint expected \u003d 21\n\t * \t\tint actual \u003d Calculator.multiply(7, 3)\n\t * \t\tassertThat(actual, is(expected))\n\t * \t}\n\t *\n\t * \t@Test\n\t * \tvoid testDivide_wrongType() {\n\t * \t\tdouble expected \u003d 1.5f\n\t * \t\tdouble actual \u003d Calculator.divide(3, 2)\n\t * \t\tassertThat(actual, is(not(expected)))\n\t * \t}\n\t *\n\t * \t@Test\n\t * \tvoid testDivide() {\n\t * \t\tint expected \u003d 1\n\t * \t\tint actual \u003d Calculator.divide(3, 2)\n\t * \t\tassertThat(actual, is(expected))\n\t * \t}\n\t * }\n\t * \u003c/PRE\u003e\n\t *\n\t * Finally the class to be tested is located at `Keywords/junittutorial/Calculator.groovy`:\n\t * \u003cPRE\u003e\n\t * package junittutorial\n\t *\n\t * import com.kms.katalon.core.annotation.Keyword\n\t *\n\t * class Calculator {\n\t *\n\t * \t @Keyword\n\t * \t static int add(int a, int b) {\n\t * \t\t return a + b;\n\t * \t }\n\t *\n\t * \t @Keyword\n\t * \t static int subtract(int a, int b) {\n\t * \t\t return a - b;\n\t * \t }\n\t *\n\t * \t @Keyword\n\t * \t static int multiply(int x, int y) {\n\t * \t\t return x * y\n\t * \t }\n\t *\n\t * \t @Keyword\n\t * \t static int divide(int x, int y) {\n\t * \t\t return x / y\n\t * \t }\n\t *\n\t * \t @Keyword\n\t * \t static int power(int a, int b){\n\t * \t\t int answer \u003da;\n\t * \t\t for (int x \u003d 2; x \u003c\u003d b; x++){\n\t * \t\t answer *\u003d a;\n\t * \t\t }\n\t * \t\t return answer;\n\t * }\n\t * }\n\t * \u003c/PRE\u003e\n\t *\n\t * Please note that in the targeted Custom Keyword (e.g, Keywords/com/example/MiniScreenshotDriver.groovy) and\n\t * JUnit test (e.g, Include/scripts/groovy/com/example/MiniScreenshotDriverTest.groovy), you can call\n\t * any Katalon Studio API including org.openqa.selenium.WebDriver. Your JUnit invoked within Katalon Studio now\n\t * can interact with your Application Under Test (web site) through WebDriver. This is what I wanted to achieve.\n\t *\n\t * @param junitRunnerClass\n\t * @param flowControl\n\t * @return\n\t */"
},
{
"name": "runWithJUnitRunner",
"parameters": [
{
"name": "junitRunnerClass",
"initialExpression": "",
"type": {
"fullClassName": "java.lang.Class",
"unresolvedClassName": "Class",
"isArray": false,
"isGnericsPlaceHolder": false,
"hasImmutableClassName": false,
"genericsTypes": [],
"errorOnParsing": false
}
}
],
"javadoc": "/**\n\t * Run the given \u003ccode\u003ejunitRunnerClass\u003c/code\u003e that is annotated with\n\t * {@link JUnit} runner by invoke JUnit runner.\n\t *\n\t * @param junitRunnerClass a class that is annotated with {@link JUnit} runner.\n\t *\n\t * \u003cp\u003e\n\t * Example of \u003ccode\u003ejunitRunnerClass\u003c/code\u003e:\n\t * \u003cul\u003e\n\t * \u003cli\u003e\n\t * \u003cpre\u003e\n\t * import org.junit.runner.RunWith\n\t * import org.junit.runners.JUnit4\n\t * \u0026#64;RunWith(JUnit4.class)\n\t * public class MyJunitRunner {}\n\t *\n\t * \u003c/pre\u003e\n\t * \u003c/li\u003e\n\t * \u003c/ul\u003e\n\t * \u003c/p\u003e\n\t * @return\n\t */"
}
]
},
{
"name": "com.kazurayam.junit4ks.JUnitCustomKeywords$JUnitRunnerResult",
"keywordMethods": []
},
{
"name": "com.kazurayam.junit4ks.JUnitCustomKeywords$JUnitRunnerResultImpl",
"keywordMethods": []
}
],
"javadocParsed": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"keywordFileContentHash": "C83341A816F8C3BCAED4F4124C7AB60B",
"keywordClasses": [
{
"name": "com.kazurayam.junit4ks.LegacyXmlReportGeneratingListener",
"keywordMethods": []
}
],
"javadocParsed": true
}
10 changes: 10 additions & 0 deletions .cache/Keywords/com__kazurayam__junit4ks__RunListener4ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"keywordFileContentHash": "7983042DB116B68F2CB8D5486DFC2048",
"keywordClasses": [
{
"name": "com.kazurayam.junit4ks.RunListener4ks",
"keywordMethods": []
}
],
"javadocParsed": true
}
Loading

0 comments on commit d11c097

Please sign in to comment.