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
import java.util.*; | |
public class Solution { | |
public int[] twoSum(int[] nums, int target) { | |
HashMap<String, Integer> numbers = new HashMap<String, Integer>(); | |
for(int i=0; i<nums.length;i++) { | |
numbers.put(Integer.toString(nums[i]),i); | |
} |
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
/** | |
* Definition for singly-linked list. | |
* public class ListNode { | |
* int val; | |
* ListNode next; | |
* ListNode(int x) { val = x; } | |
* } | |
*/ | |
public class Solution { | |
public ListNode addTwoNumbers(ListNode l1, ListNode l2) { |
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
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=berkdulger-github -Dsonar.login=f109eeaaff1f6702a4951590b9dcffced388be71 |
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
package DataDriven; | |
import org.junit.BeforeClass; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Parameterized; | |
import org.junit.runners.Parameterized.Parameters; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<jmeterTestPlan version="1.2" properties="2.1"> | |
<hashTree> | |
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> | |
<stringProp name="TestPlan.comments"></stringProp> | |
<boolProp name="TestPlan.functional_mode">false</boolProp> | |
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp> | |
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> | |
<collectionProp name="Arguments.arguments" /> | |
</elementProp> |
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
clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar | |
-Dsonar.host.url=https://sonarcloud.io | |
-Dsonar.organization=berlger-github | |
-Dsonar.login=e7a6aa83e942e534bc07c7b0eceeb8d22sr2e859 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> | |
<suite thread-count="2" name="Suite" parallel="classes"> | |
<listeners> | |
<listener class-name="utils.listener.TestListener"></listener> | |
<listener class-name="utils.listener.AnnotationTransformer"></listener> | |
</listeners> | |
<test name="FirstTest" thread-count="2" parallel="classes"> | |
<classes> | |
<class name="tests.LoginTest"/> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<extentreports> | |
<configuration> | |
<!-- report theme --> | |
<!-- standard, dark --> | |
<theme>standard</theme> | |
<!-- document encoding --> | |
<!-- defaults to UTF-8 --> | |
<encoding>UTF-8</encoding> |
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
package utils; | |
import org.testng.IRetryAnalyzer; | |
import org.testng.ITestResult; | |
public class ReTry implements IRetryAnalyzer { | |
private static int count = 1; | |
private static int maxTry = 3; |
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
package utils.listener; | |
import org.testng.IAnnotationTransformer; | |
import org.testng.annotations.ITestAnnotation; | |
import utils.ReTry; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Method; | |
public class AnnotationTransformer implements IAnnotationTransformer { |
OlderNewer