https://stackoverflow.com/questions/58259868/how-to-extend-heap-size-of-jmeter-5-1-1-on-windows-10
https://stackoverflow.com/questions/58259868/how-to-extend-heap-size-of-jmeter-5-1-1-on-windows-10
https://app.zety.com/login Classic application
https://novoresume.com/page/legal/cookie
Cookies are text files containing small amounts of information which are downloaded to your device when you visit a website. Cookies are then sent back to the originating website on each subsequent visit, or to another website that recognizes that cookie.
These cookies contain no personally identifiable information but they will use your computer’s IP address to know from where in the world you are accessing the Internet.
Cookies do lots of different jobs, like letting you navigate between pages efficiently, remembering your preferences, and improve the user experience. They can also help to ensure that adverts you see online are more relevant to you and your interests.
Create a CSV file
https://www.blazemeter.com/blog/three-ways-to-generate-random-variables-in-jmeter
1. ${__time()}
{
"usercode":"email${__time()}@mailinator.com",
}
https://food.ndtv.com/opinions/the-nutty-affair-just-how-much-of-these-nuts-should-you-be-eating-779321
|
|
|
1 |
Almonds |
8-10 |
2 |
Walnuts |
2 |
3 |
Dates |
2 |
4 |
Cashew |
4-5 |
5 |
Pista |
5-7 |
6 |
Peanuts |
8-10 |
Total quantity should not exceed more than 20 gms / 25 pieces, suggested to take morning/day
time.
To get the JUnit Test option, you should add the following 2 dependencies in the POM.xml
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.4.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.4.2</version>
<scope>test</scope>
</dependency>
https://github.com/ChamichApps/Mock-Response-In-Retrofit-2.0/blob/master/app/src/main/java/com/vavian/mockretrofitrequests/rest/service/FakeInterceptor.java
With java-hamcrest 2.0.0.0 we can use this syntax:
// import static org.hamcrest.MatcherAssert.assertThat;
// import org.hamcrest.Matchers;
BigDecimal a = new BigDecimal("100")
BigDecimal b = new BigDecimal("100.00")
assertThat(a, Matchers.comparesEqualTo(b));
https://mkyong.com/java/jsonassert-how-to-unit-test-json-data/
https://github.com/square/retrofit
https://square.github.io/retrofit/
https://www.youtube.com/watch?v=tC9og1H2604&t=210s
Github: https://github.com/dius/java-faker
Documentation : http://dius.github.io/java-faker/apidocs/index.html
Demo Application: https://github.com/codingricky/java-faker-spring-boot
Git link for Demo app: Its in Cradle make a check.
git clone https://github.com/codingricky/java-faker-spring-boot.git
its supports different languages also called locale
Helpful links:
https://medium.com/@grajeshr97/faker-library-dynamic-data-for-test-automation-25aa2b268790
https://requests.readthedocs.io/en/master/user/quickstart/#response-status-codes
r.url
r.status_code
r = requests.post(url, data=json.dumps(payload))
pip list
installing package form the text file all.
pip install -r requirements.txt
pip list
https://stackoverflow.com/questions/29846087/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat
https://www.selenium.dev/downloads/
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
https://chromedriver.chromium.org/downloads
where python
https://stackoverflow.com/questions/19829516/how-to-get-python-installed-path-from-command-line
https://stackoverflow.com/questions/58696488/how-to-resolve-cannot-call-non-w3c-standard-command-while-in-w3c-mode-in-case
{ "deviceName": "vivo 1920", "udid": "575b6cf1", "platformName": "Android", "platformVersion": "9", "chromedriverExecutableDir": "D:\\picx\\81", "appActivity": "com.google.android.apps.chrome.Main", "appPackage": "com.android.chrome" }
Java code
package test1; import org.testng.annotations.Test; import com.google.common.collect.ImmutableMap; import java.net.URL; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.DesiredCapabilities; import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.remote.MobileCapabilityType; public class ChromeExample { //Any of the below code works fine //static AppiumDriver<MobileElement> appDriver; static WebDriver appDriver; @Test public static void OpenChromeBrowser() throws Exception { DesiredCapabilities cap = new DesiredCapabilities(); cap.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android"); cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, "9"); cap.setCapability(MobileCapabilityType.DEVICE_NAME, "vivo 1920"); cap.setCapability(MobileCapabilityType.UDID, "575b6cf1"); cap.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, "60"); cap.setCapability(MobileCapabilityType.BROWSER_NAME, "Chrome"); cap.setCapability("chromedriverExecutableDir", "D:\\picx\\81"); cap.setCapability("appium:chromeOptions", ImmutableMap.of("w3c", false)); URL url = new URL("http://127.0.0.1:4723/wd/hub"); appDriver = new AppiumDriver<MobileElement>(url,cap); System.out.print("Opened Chrome Browser"); appDriver.get("https://www.google.com"); WebElement elem = appDriver.findElement(By.name("q")); //WebElement elem1 = appDriver.findElement(By.name("q")); this code also works fine elem.sendKeys("learn"); elem.sendKeys(Keys.ENTER); } }
Simple Controller is just a container for user request.