This file contains hidden or 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
ChromeOptions options = new ChromeOptions(); | |
options.addArguments("--start-maximized"); | |
options.addArguments("--disable-web-security"); | |
options.addArguments("--no-proxy-server"); | |
Map prefs = new HashMap(); | |
prefs.put("credentials_enable_service", false); | |
prefs.put("profile.password_manager_enabled", false); | |
options.setExperimentalOption("prefs", prefs); |
This file contains hidden or 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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>3.1.0</version> | |
<configuration> | |
<mainClass>com.sqabatch24.javadasar.App</mainClass> | |
</configuration> | |
</plugin> |
This file contains hidden or 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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.skorlife</groupId> | |
<artifactId>Skorlife</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> |
This file contains hidden or 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
pm.test("Response status code must be 200", function () { | |
pm.response.to.have.status(200); | |
}); | |
pm.test("Response time is less than 1.5 seconds", function () { | |
pm.expect(pm.response.responseTime).to.be.below(1500); | |
}); | |
pm.test("Response must be object", () => { | |
const responseData = pm.response.json(); | |
const { results, count, next, previous } = responseData; | |
pm.expect(responseData).to.be.an('object'); |
This file contains hidden or 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
// implementasi BasePage pada Page Object Model untuk skip error jika tidak ditemukan elemen | |
public class BasePage { | |
protected WebDriver driver; | |
protected WebDriverWait wait; | |
protected List<String> missingElements = new ArrayList<>(); | |
public BasePage(WebDriver driver) { | |
this.driver = driver; | |
this.wait = new WebDriverWait(driver, Duration.ofSeconds(5)); | |
} |
This file contains hidden or 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
CREATE TABLE `sales_db`.`owner` ( | |
`id` INT NOT NULL AUTO_INCREMENT , | |
`username` VARCHAR(40) NOT NULL , | |
`password` VARCHAR(200) NOT NULL , | |
`fisrtName` VARCHAR(40) NOT NULL , | |
`lastName` VARCHAR(40) NOT NULL , | |
PRIMARY KEY (`id`), | |
UNIQUE (`username`)) ENGINE = InnoDB; |
This file contains hidden or 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 static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint | |
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase | |
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData | |
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject | |
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject | |
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint | |
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW | |
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile | |
import com.kms.katalon.core.model.FailureHandling as FailureHandling | |
import com.kms.katalon.core.testcase.TestCase as TestCase |
This file contains hidden or 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 com.ptintercompoland.learn; | |
import java.time.Duration; | |
import java.util.ArrayList; | |
import org.openqa.selenium.Alert; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.WebElement; | |
import org.openqa.selenium.chrome.ChromeDriver; |
This file contains hidden or 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
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.belajarcucumber</groupId> | |
<artifactId>BelajarCucumber</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>Belajar Cucumber</name> | |
<description>Belajar cucucmber BDD</description> | |
<dependencies> | |
<dependency> | |
<groupId>io.cucumber</groupId> |
This file contains hidden or 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.zen</groupId> | |
<artifactId>SeleniumAppTest</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>SeleniumAppTest</name> | |
<url>http://maven.apache.org</url> | |
<dependencies> |
NewerOlder