Skip to content

Instantly share code, notes, and snippets.

View kushanparikh's full-sized avatar

KushanParikh kushanparikh

View GitHub Profile
@kushanparikh
kushanparikh / Feature file - Gherkin language
Last active September 12, 2023 00:51
Gherkin language - Feature file
Feature: Applciation Behaviour
Sceanrio: Application behaviour under specific circumstances
Given define pre-condition or initial context
When define a trigger that will forge the circumstances
Then define expected outcome or a result
@kushanparikh
kushanparikh / @CucumberOptions
Last active September 12, 2023 00:26
Cucumber Runner @CucumberOptions
import org.junit.runner.RunWith;
import cucumber.api.junit.Cucumber;
import cucumber.api.CucumberOptions;
@Runwith(Cucumber.class)
@CucumberOptions(features="resources/features", glue="runners",
tags="@Regression", plugin ="pretty")
Public class runner(){
import org.junit.runner.RunWith;
import cucumber.api.junit.Cucumber;
@Runwith(Cucumber.class)
Public class runner(){
}
@kushanparikh
kushanparikh / Cucumber Dependencies Gradle 4.13
Last active September 8, 2023 02:49
Cucumber Dependencies Gradile
dependencies {
testCompile 'io.cucumber:cucumber-java:7.13.0'
testCompile 'io.cucumber:cucumber-junit:7.13.0'
}
repositories {
mavenCentral()
}
@kushanparikh
kushanparikh / Cucumber Dependencies - POM.xml
Last active September 12, 2023 00:05
Cucumber Dependencies
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-java -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>7.13.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-junit -->
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
@kushanparikh
kushanparikh / .deps...remix-tests...remix_accounts.sol
Created May 29, 2023 02:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;