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
curl -i -X POST -H 'Content-Type: application/json' http://127.0.0.1:2525/imposters --data '{ | |
"port":9907, | |
"protocol":"http", | |
"name":"proxyOnce", | |
"recordRequests": true, | |
"stubs":[ | |
{ | |
"responses":[ | |
{ | |
"proxy":{ |
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
{ | |
"imposters": [ | |
{ | |
"predicates": [ | |
{ | |
"caseSensitive": true, | |
"deepEquals": { | |
"headers": { | |
"Host": "127.0.0.1:9907", | |
"Connection": "keep-alive", |
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.ctl.it.qa.sample.tests; | |
import cucumber.api.PickleStepTestStep; | |
import cucumber.api.event.ConcurrentEventListener; | |
import cucumber.api.event.EventHandler; | |
import cucumber.api.event.EventPublisher; | |
import cucumber.api.event.TestStepStarted; | |
public class GetTestStepName implements ConcurrentEventListener { | |
public static String currentStepName; |
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.ctl.it.qa.sample.tests; | |
import cucumber.api.Scenario; | |
import cucumber.api.java.After; | |
import cucumber.api.java.Before; | |
import net.serenitybdd.core.Serenity; | |
import net.thucydides.core.annotations.Steps; | |
import java.lang.reflect.Field; | |
import java.util.HashSet; | |
import java.util.List; |
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.ctl.it.qa.sample.tests; | |
import net.serenitybdd.cucumber.CucumberWithSerenity; | |
import org.junit.runner.RunWith; | |
import cucumber.api.CucumberOptions; | |
@RunWith(CucumberWithSerenity.class) | |
@CucumberOptions(features = "src/test/resources/features/", plugin = { "pretty","com.ctl.it.qa.sample.tests.GetTestStepName" },tags = { "@Sample" }) | |
public class CukesTest { | |
} |
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 CollectionsManaging; | |
import java.util.ArrayList; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
public class stream { | |
public static void main(String[] arg){ | |
ArrayList<Integer> a=new ArrayList<Integer>(); | |
a.add(3); | |
a.add(4); | |
a.add(19); |