Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

ExecuteAutomation executeautomation

🎯
Focusing
Block or report user

Report or block executeautomation

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View KatalonWinApp
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
View ClearTextBoxAddon.cs
using ClearTextBoxAddon.Addons;
using OpenQA.Selenium;
using System.Threading;
using TestProject.SDK;
using TestProject.SDK.Drivers;
namespace ClearTextBoxAddon
{
public class ClearTextBase
{
@executeautomation
executeautomation / ClearTextAction.cs
Created May 27, 2019
TestProject .NET Core Addon
View ClearTextAction.cs
using System;
using OpenQA.Selenium;
using TestProject.Common.Attributes;
using TestProject.SDK;
using TestProject.SDK.Addons.ElementAction;
using TestProject.SDK.Addons.Helpers;
namespace ClearTextBoxAddon.Addons
{
View CustomAddons
package main.Addon;
import io.testproject.java.annotations.v2.Action;
import io.testproject.java.sdk.v2.addons.WebAction;
import io.testproject.java.sdk.v2.addons.helpers.WebAddonHelper;
import io.testproject.java.sdk.v2.drivers.WebDriver;
import io.testproject.java.sdk.v2.enums.ExecutionResult;
import io.testproject.java.sdk.v2.exceptions.FailureException;
import org.openqa.selenium.By;
@executeautomation
executeautomation / KatalonStudio_POST_Request.groovy
Created Jun 6, 2018
Katalon studio POST request and verify request
View KatalonStudio_POST_Request.groovy
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 com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords
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
@executeautomation
executeautomation / KatalonStudio_Get_Request.groovy
Created Jun 3, 2018
KatalonStudio_Get_Request_ExecuteAutomation
View KatalonStudio_Get_Request.groovy
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 com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords
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
View AppInitializer.cs
public static IApp StartApp(Platform platform)
{
if (platform == Settings.Android)
{
return ConfigureApp
.Android
.InstalledApp(Settings.AUTPackageName)
.StartApp();
}
else if(platform == Settings.iOS){
View ChromeHeadless.cs
ChromeOptions option = new ChromeOptions();
option.AddArgument("--headless");
_driver = new ChromeDriver(option);
View NUnitParams.cs
public class Hooks : Base
{
private BrowerType _browserType;
[SetUp]
public void InitializeTest()
{
//Get the value from NUnit-console --params
//e.g. nunit3-console.exe --params:Browser=Firefox \SeleniumNUnitParam.dll
//If nothing specified, test will run in Chrome browser
View LoginSteps.cs
using NUnit.Framework;
using OpenQA.Selenium;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using TechTalk.SpecFlow;
using TechTalk.SpecFlow.Assist;
You can’t perform that action at this time.