➜ demo git:(master) ✗ ./gradlew clean build -x test
BUILD SUCCESSFUL in 1s
4 actionable tasks: 4 executed
➜ demo git:(master) ✗ java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5010 -jar -Dspring.profiles.active=local /Users/akshay.badgujar_js/IdeaProjects/demo/build/libs/demo-0.0.1-SNAPSHOT.jar
Listening for transport dt_socket at address: 5010
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.4.13)
2022-11-30 18:54:25.045 INFO 48661 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication using Java 11.0.15 on MacBook-Pro-2.local with PID 48661 (/Users/akshay.badgujar_js/IdeaProjects/demo/build/libs/demo-0.0.1-SNAPSHOT.jar started by akshay.badgujar_js in /Users/akshay.badgujar_js/IdeaProjects/demo)
2022-11-30 18:54:25.049 INFO 48661 --- [ main] com.example.demo.DemoApplication : The following profiles are active: local
2022-11-30 18:54:27.113 INFO 48661 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-11-30 18:54:27.139 INFO 48661 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-11-30 18:54:27.139 INFO 48661 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.55]
2022-11-30 18:54:27.236 INFO 48661 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-11-30 18:54:27.237 INFO 48661 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2107 ms
2022-11-30 18:54:27.573 INFO 48661 --- [ main] com.example.demo.CustomListener : Inside Constructor
2022-11-30 18:54:30.886 INFO 48661 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2022-11-30 18:54:30.909 INFO 48661 --- [ main] com.example.demo.DemoApplication : Started DemoApplication in 6.853 seconds (JVM running for 7.436)
2022-11-30 18:54:38.008 INFO 48661 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-11-30 18:54:38.009 INFO 48661 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2022-11-30 18:54:38.010 INFO 48661 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
2022-11-30 18:54:38.198 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.collectMethodsByGroup() took 0 ms.
2022-11-30 18:54:38.201 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.sortMethods() took 1 ms.
2022-11-30 18:54:38.201 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.collectMethodsByGroup() took 0 ms.
2022-11-30 18:54:38.201 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.sortMethods() took 0 ms.
2022-11-30 18:54:38.202 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.collectMethodsByGroup() took 0 ms.
2022-11-30 18:54:38.202 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.sortMethods() took 0 ms.
2022-11-30 18:54:38.203 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.collectMethodsByGroup() took 0 ms.
2022-11-30 18:54:38.203 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.sortMethods() took 0 ms.
2022-11-30 18:54:38.203 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.collectMethodsByGroup() took 0 ms.
2022-11-30 18:54:38.203 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] MethodGroupsHelper.sortMethods() took 0 ms.
2022-11-30 18:54:38.210 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [TestNG] Running:
Command line suite
2022-11-30 18:54:38.224 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [Utils] DynamicGraphHelper.createDynamicGraph() took 2 ms.
===============================================
Pulsar Test
Tests run: 0, Failures: 0, Skips: 0
===============================================
===============================================
Pulsar Tests Suite
Total tests run: 0, Passes: 0, Failures: 0, Skips: 0
===============================================
2022-11-30 18:54:38.238 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [TestNG] Time taken by org.testng.internal.ExitCodeListener@6a5475ec: 0 ms
2022-11-30 18:54:38.281 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@5ebbbbbc: 43 ms
2022-11-30 18:54:38.334 ERROR 48661 --- [nio-8080-exec-1] org.testng.reporters.jq.Main : test-output/testng-reports.css
java.nio.file.FileAlreadyExistsException: test-output/testng-reports.css
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94) ~[na:na]
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[na:na]
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[na:na]
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219) ~[na:na]
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478) ~[na:na]
at java.base/java.nio.file.Files.newOutputStream(Files.java:220) ~[na:na]
at java.base/java.nio.file.Files.copy(Files.java:3067) ~[na:na]
at org.testng.reporters.jq.Main.generateReport(Main.java:95) ~[testng-7.6.1.jar!/:7.6.1]
at org.testng.TestNG.generateReports(TestNG.java:1134) ~[testng-7.6.1.jar!/:7.6.1]
at org.testng.TestNG.run(TestNG.java:1072) ~[testng-7.6.1.jar!/:7.6.1]
at com.example.demo.TestRunner.triggerTestFromRequest(TestRunner.java:170) ~[classes!/:na]
at com.example.demo.SampleController.executeTests(SampleController.java:15) ~[classes!/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.13.jar!/:5.3.13]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.13.jar!/:5.3.13]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:655) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.13.jar!/:5.3.13]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.55.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.13.jar!/:5.3.13]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.13.jar!/:5.3.13]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.13.jar!/:5.3.13]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.13.jar!/:5.3.13]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.13.jar!/:5.3.13]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.13.jar!/:5.3.13]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1722) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.55.jar!/:na]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.55.jar!/:na]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2022-11-30 18:54:38.450 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [TestNG] Time taken by org.testng.reporters.jq.Main@15059ceb: 168 ms
2022-11-30 18:54:38.451 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [TestNG] Time taken by org.testng.reporters.FailedReporter@15e68308: 1 ms
2022-11-30 18:54:38.481 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [TestNG] Time taken by org.testng.reporters.XMLReporter@6f9eff00: 15 ms
2022-11-30 18:54:38.496 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [TestNG] Time taken by org.testng.reporters.EmailableReporter2@4cd4cf1e: 15 ms
2022-11-30 18:54:38.496 INFO 48661 --- [nio-8080-exec-1] org.testng.internal.Utils : [TestNG] Time taken by org.testng.reporters.JUnitReportReporter@11373d98: 0 ms
[TestNG] No tests found. Nothing was run
Usage: [options] The XML suite files to run
Options:
-alwaysrunlisteners
Should MethodInvocation Listeners be run even for skipped methods
Default: true
-configfailurepolicy
Configuration failure policy (skip or continue)
-d
Output directory
-dataproviderthreadcount
Number of threads to use when running data providers
-dependencyinjectorfactory
The dependency injector factory implementation that TestNG should use.
-excludegroups
Comma-separated list of group names to exclude
-failwheneverythingskipped
Should TestNG fail execution if all tests were skipped and nothing was
run.
Default: false
-groups
Comma-separated list of group names to be run
-includeAllDataDrivenTestsWhenSkipping
Should TestNG report all iterations of a data driven test as individual
skips, in-case of upstream failures.
Default: false
-junit
JUnit mode
Default: false
-listener
List of .class files or list of class names implementing ITestListener
or ISuiteListener
-methods
Comma separated of test methods
Default: []
-methodselectors
List of .class files or list of class names implementing IMethodSelector
-mixed
Mixed mode - autodetect the type of current test and run it with
appropriate runner
Default: false
-objectfactory
List of .class files or list of class names implementing
ITestRunnerFactory
-overrideincludedmethods
Comma separated fully qualified class names of listeners that should be
skipped from being wired in via Service Loaders.
Default: false
-parallel
Parallel mode (methods, tests or classes)
Possible Values: [tests, methods, classes, instances, none]
-port
The port
-propagateDataProviderFailureAsTestFailure
Should TestNG consider failures in Data Providers as test failures.
Default: false
-reporter
Extended configuration for custom report listener
-spilistenerstoskip
Comma separated fully qualified class names of listeners that should be
skipped from being wired in via Service Loaders.
Default:
-suitename
Default name of test suite, if not specified in suite definition file or
source code
-suitethreadpoolsize
Size of the thread pool to use to run suites
Default: 1
-testclass
The list of test classes
-testjar
A jar file containing the tests
-testname
Default name of test, if not specified in suitedefinition file or source
code
-testnames
The list of test names to run
-testrunfactory, -testRunFactory
The factory used to create tests
-threadcount
Number of threads to use when running tests in parallel
-threadpoolfactoryclass
The threadpool executor factory implementation that TestNG should use.
-usedefaultlisteners
Whether to use the default listeners
Default: true
-log, -verbose
Level of verbosity
-xmlpathinjar
The full path to the xml file inside the jar file (only valid if
-testjar was specified)
Default: testng.xml
Status ===> 8