Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Exp 9 to exp-14
1. Experiment-9
Test case execution- (i) Pause test case execution (ii) Resume it later (iii) Stop test case
execution at a required step: Using breakpoint (iv) Start test case execution from a
required step: Using Set Start point
(i) Pause test case execution
Command Target Value
open http://www.google.co.in
type name=btnK selenium
verifyTextNotPresent Downloads
SCREENSHOT:
(ii) Resume it later
Command Target Value
open http://www.yahoo.in
2. type id=UHSearchBox selenium
verifyTextNotPresent Downloads
SCREENSHOT:
(iii) Stop test case execution at a required step: Using breakpoint
Command Target Value
open http://www.ebay.com
type id=gh-ac electronics
type id=gh-ac computers
3. (iv) Start test case execution from a required step: Using Set Start point
Command Target Value
open http://www.ebay.com
type id=gh-ac electronics
type id=gh-ac computers
open http://www.ebay.com
type id=gh-ac electronics
type id=gh-ac computers
SCREENSHOT:
4.
5. Experiment-10
Commands to input data to AUT- type, sendKeys, select, check, uncheck, click, submit,
AndWait
AUT is application under test i.e website or web applications. Following commands are used
to input or insert data to these web components:
(i) Check: To check a checkbox
(ii) Click- To submit and navigate on same page.
(iii) ClickAndWait- To submit and navigate on other page.
(iv) Echo- To print the output
(v) SendKeys- To simulate with the keyboard
Test Case: input.html
Command Target Value
open https://www.slideshare.net/login
uncheck id=remember
check id=remember
submit id=user_login
sendKeys id=user_login 1333sample
OUTPUT:
6. Experiment-11
Retrieve data from AUT- storeText, storeAttribute, storeElementPresent
The commands used to retrieve and store data are as follows:
(i) storeText- To store a text display or present on an element
(ii) storeAttribute- To store specific attribute value
(iii) storeElementPresent- To store true or false based on element present or not
Test Case: store.html
Command Target Value
open https://www.slideshare.net/login
storeText id=fb-login FBtext
echo ${FBtext}
storeAttribute id=fb-login@class FBclass
echo ${FBclass}
storeElementPresent id=fb-login FBpresent
echo ${FBpresent}
OUTPUT:
7. Experiment-12
Wait for events in AUT- waitForText, waitForElementPresent, waitForAtrribute
Wait for event commands work for 30s or 30000ms for any operation to be performed by a
given default value in selenium.
(i) waitForText- wait for a text to appear & it is specific to a variable or a locating
strategy.
(ii) waitForElementPresent- wait for certain element present in the webpage.
(iii) waitForAtrribute- wait for an attribute value as we have to wait for a variable to
attain that value.
Test Case: wait.html
Command Target Value
Open https://www.slideshare.net/login
waitForAttribute id=login_from_loginpage@type submit
waitForText All fields are required.
waitForElementPresent id=fb-login
OUTPUT
8. Experiment-13
Create a test case for various assert commands to examine the direction of test cases
and display the result
Choosing between assert and verify commands depend on how you want to manage
failures:
o on assert failure- It will fail the test case & abort the current test case
execution
o on verify failure- It will fail the test case & continue the current test case
execution
Use assert commands to make sure your test case is going in right direction e.g. right
user configuration is loaded or correct page is loaded.
The best use of this feature is to logically group your test commands.
(i) assertTitle- Used to assert the title of current page.
(ii) assertAttribute- Used to assert the attribute of an element
(iii) assetElementPresent- To check whether the element is present or not.
Test Case: assert.html
Command Target Value
Open https://in.yahoo.com/
Type id=UHSearchBox selenium
Click id=UHSearchWeb
assertAttribute name=p@class sbq
assertTitle selenium - Yahoo India Search Results
assertElementPresent id=logo
captureEntirePageScreenshot C:UsersarshpreetDesktop3.png
OUTPUT:
9. Experiment-14
Demonstrate the use of verify commands to compare test results or output values
Use Verify commands to actually compare test results or output values as assert page fails it
will automatically or immediately go on the page & check the output values.
(i) verifyElementPresent- To verify a particular web element is present on webpage
or not.
(ii) verifyValue- To verify the value of the text present within the element present.
(iii) verifyAttribute- To verify a attribute value.
Test Case: verify.html
Command Target Value
Open https://in.yahoo.com/
Type id=UHSearchBox selenium
clickAndWait id=UHSearchWeb
verifyTitle selenium - Yahoo India Search Results
verifyElementPresent id=logo
verifyAttribute id=yschsp@autocomplete off
verifyValue id=yschsp selenium
OUTPUT