Install minikube by referring to instructions here
Start a mini kube cluster with a higher resource configuration
➜ minikube start --cpus 6 --memory 8192
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.Comparator; | |
import java.util.List; | |
import java.util.concurrent.*; | |
//Works | |
public class CompletableFuturePriorityQueueExample { | |
static class Task implements Comparable<Task> { | |
private final String name; |
Install minikube by referring to instructions here
Start a mini kube cluster with a higher resource configuration
➜ minikube start --cpus 6 --memory 8192
package com.springpoc.test; | |
import com.springpoc.config.SpringConfig; | |
import com.springpoc.util.WebDriverUtils; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; | |
import org.testng.annotations.AfterMethod; | |
import org.testng.annotations.BeforeClass; |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import org.skyscreamer.jsonassert.JSONCompareMode; | |
import org.skyscreamer.jsonassert.JSONParser; | |
import org.testng.asserts.IAssert; | |
import org.testng.asserts.SoftAssert; | |
public class JSONAwareSoftAssertion extends SoftAssert { |
public class GridInfoExtracter{ | |
private static String[] getHostNameAndPort(String hostName, int port, | |
SessionId session) { | |
String[] hostAndPort = new String[2]; | |
String errorMsg = "Failed to acquire remote webdriver node and port info. Root cause: "; | |
try { | |
HttpHost host = new HttpHost(hostName, port); | |
DefaultHttpClient client = new DefaultHttpClient(); |
/* | |
* This file was generated by the Gradle 'init' task. | |
* | |
* This is a general purpose Gradle build. | |
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/7.2/samples | |
*/ | |
plugins { | |
id 'java' | |
id 'idea' |
{ | |
"capabilities": | |
[ | |
{ | |
"browserName":"firefox", | |
"acceptSslCerts":true, | |
"javascriptEnabled":true, | |
"takesScreenshot":true, | |
"firefox_profile":"", | |
"maxInstances":5 |
import java.util.ArrayList; | |
import java.util.List; | |
import org.testng.IReporter; | |
import org.testng.ISuite; | |
import org.testng.ISuiteResult; | |
import org.testng.ITestResult; | |
import org.testng.Reporter; | |
import org.testng.xml.XmlSuite; | |
public class SampleReporter implements IReporter { |
package raw.code; | |
import java.io.File; | |
import java.io.IOException; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import org.apache.commons.io.FileUtils; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.OutputType; |