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 unittest | |
class SimpleCalll(unittest.TestCase): | |
def setUp(self): | |
print "Setup" | |
def tearDown(self): |
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
#Mainter : Promode | |
version: '2' | |
services: | |
progrid: | |
image: selenium/hub:2.53.1 | |
container_name: progrid | |
privileged: true | |
ports: | |
- 4444:4444 |
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
##Asserts - | |
* assert() | |
* assertDoesntExist() | |
* assertEquals() | |
* assertEval() | |
* assertEvalEquals() | |
* assertElementCount() | |
* assertExists() | |
* assertFalsy() |
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
version: "3" | |
networks: | |
main: | |
driver: overlay | |
services: | |
hub: | |
image: selenium/hub:3.2.0 | |
ports: | |
- "4444:4444" |
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
Docker Swarm - Deploying a Selenium grid | |
Objective : To be able run more than 10 browsers and using multiple machines(Server1,2). | |
Pre Req. - | |
Docker Swarm requires few ports to be open for it to work. These are | |
-TCP port 2377. This port is used for communication between the nodes of a Docker Swarm or cluster. It only needs to be opened on manager nodes. | |
-TCP and UDP port 7946 for communication among nodes (container network discovery). |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Good and Bad Variables - P1"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
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 live.sdet; | |
import io.restassured.RestAssured; | |
import org.testng.annotations.Test; | |
import static io.restassured.module.jsv.JsonSchemaValidator.matchesJsonSchemaInClasspath; | |
import static org.hamcrest.MatcherAssert.assertThat; | |
/** | |
* Unit test for simple App. |
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.scrolltest.todo; | |
import com.microsoft.playwright.*; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
public class FileChoosers { | |
public static void main(String[] args) { |
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 designpattern.builderPattern; | |
public class UserCreatorDemo { | |
public static void main(String[] args) { | |
User user = new User.UserBuilder("Pramod","Dutta").setAddress("New Delhi").build(); | |
User user2 = new User.UserBuilder("Aman","Ji").setAge(32).build(); | |
} |
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
name=PropertiesConfig | |
property.filename = logs | |
appenders = console, file | |
appender.console.type = Console | |
appender.console.name = STDOUT | |
appender.console.layout.type = PatternLayout | |
appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n | |
appender.file.type = File | |
appender.file.name = LOGFILE | |
appender.file.fileName=AppLog.log |
OlderNewer