Skip to content

Instantly share code, notes, and snippets.

View coding-yogi's full-sized avatar
💭
Coding is Meditation

coding-yogi

💭
Coding is Meditation
View GitHub Profile
@coding-yogi
coding-yogi / SomeTests.java
Created May 6, 2021 08:55
Webdriver Gist
public class SomeTests extends BaseTest {
@Test(groups = {"android", "ios"})
public void onboardingTest1(Method method) {
String pin = data.getRandomPIN();
OnboardingPage onboardingPage = new OnboardingPage(driverFactory.getDriver(method.getName()));
onboardingPage.initiate()
.enterPhoneDetails(data.getRandomPhoneNumber())
.enterOTP(data.getTestOTP())
.enterPinDetails(pin, pin)
package main
import (
"flag"
"os"
"time"
"github.com/coding-yogi/goperf/log"
"github.com/coding-yogi/goperf/tests"
)
final String queueManagerName = "manager";
final String queueName = "DEV.QUEUE.1";
final String channelName = "DEV.APP.SVRCONN";
//final String replyQueue = "";
final String host = "10.23.142.85";
final int port = 1414;
//MQ Properties
Hashtable<String, Object> props = new Hashtable<>();
props.put(MQConstants.HOST_NAME_PROPERTY, host);
import java.time.Duration;
import java.time.Instant;
import java.util.*;
import java.util.stream.Collectors;
public class StreamsProgram {
public static void main(String args[]) {
List<String> someCrazyLowerCaseWords = Arrays.asList("gregrerege","rgregergregregrgteg","jiuiyikuyiuykuyk","dwqdwqdddqwwdw","bcvdvbdvhfbvfhv","fhgywefgwehbcj","fghruwebvvdjsnvdfjsv","wpoeopwquroiweqre",
@coding-yogi
coding-yogi / main.go
Created March 22, 2018 08:46
go code to create node config for every android device dynamically
package main
import (
"encoding/json"
"io/ioutil"
"log"
"os"
"os/exec"
"strings"
)
package main
import (
"fmt"
"gobot.io/x/gobot"
"gobot.io/x/gobot/drivers/gpio"
"gobot.io/x/gobot/platforms/dexter/gopigo3"
"gobot.io/x/gobot/platforms/raspi"
)
public T ClickNext<T>() where T : PageOps
{
_page.SubmitDetails.Click();
if (typeof(T) == GetType())
return (T)Convert.ChangeType(this, typeof(T));
return (T)Activator.CreateInstance(typeof(T), new object[] { PageOpsContextExtension });
}