tag:blogger.com,1999:blog-24045286881983047542024-03-18T20:34:00.381-07:00TESTEVERYTHING (QTP,JMETER,SELENIUM,WEBDRIVER)It's All About Testing.RAJIV NANDVANIhttp://www.blogger.com/profile/06907536766602168020noreply@blogger.comBlogger93125tag:blogger.com,1999:blog-2404528688198304754.post-89888417286002203312021-05-05T20:43:00.001-07:002021-05-05T20:43:58.036-07:00XPath Axis Family Tree Analogy The major XPath axes follow family tree terminology:self:: is you.Downward:child:: are your immediate children.descendant:: are your children, and their children, recursively.descendant-or-self:: (aka //): are you and your descendants.Upward:parent:: is your mother or father.ancestor:: are your parent, and your parent's parent, TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com1tag:blogger.com,1999:blog-2404528688198304754.post-65197848749628045502021-03-04T01:56:00.001-08:002021-03-04T01:56:11.863-08:00How to validate credit cards using a regular expression? Again, you should rely on other methods since the regular expressions here will only validate the format. Make use of the Luhn algorithm to properly validate a card.VISA:^4[0-9]{12}(?:[0-9]{3})?$MasterCard:^5[1-5][0-9]{14}$American Express:^3[47][0-9]{13}$Diners Club:^3(?:0[0-5]|[68][0-9])[0-9]{11}$Discover:^6(?:011|5[0-9]{2})[0-9]{12}$JCB:^(?:2131|1800|35\d{3})\d{11}$TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-76915001052245151452021-03-04T01:55:00.001-08:002021-03-04T01:55:05.692-08:00How to validate NUMBERS with a regular expression? It depends. What type of number? What precision? What length? What do you want as a decimal separator? Etc. The following examples should help you want with the most common tasks.Positive integers of undefined length:^\d+$Positive integers of maximum length (10 in our example):^\d{1,10}$Positive integers of fixed length (5 in our example):^\d{5}$Negative integers of undefined length:^-\d+$TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-8309952855390430612021-03-04T01:54:00.004-08:002021-03-04T01:54:33.311-08:00How to validate a DATE with a regular expression? Never use a regular expression to validate a date. The regular expression is only useful to validate the format of the date as entered by a user. For the actual date validity, you should rely on another language.The following expressions will validate the number of days in a month but will NOT handle leap year validation; hence february can have 29 days every year, but not more.ISO date TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-72285742016988556552021-03-04T01:54:00.000-08:002021-03-04T01:54:02.328-08:00How can I emulate DOTALL in JavaScript? DOTALL is a flag in most recent regex libraries that makes the . metacharacter match anything INCLUDING line breaks. JavaScript by default does not support this since the . metacharacter matches anything BUT line breaks. To emulate this behavior, simply replaces all . metacharacters by [\S\s]. This means match anything that is a single white space character OR anything that is not a white TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-84959348916618315532021-03-04T01:46:00.002-08:002021-03-04T01:50:13.535-08:00Regular Expression - Documentation MetacharactersCharacterWhat does it do?$Matches the end of the input. If in multiline mode, it also matches before a line break character, hence every end of line.(?:x)Matches 'x' but does NOT remember the match. Also known as NON-capturing parenthesis.(x)Matches 'x' and remembers the match. Also known as capturing parenthesis.*Matches the preceding character 0 or TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-16883051587246540472018-11-26T01:59:00.001-08:002018-11-26T01:59:56.509-08:00Selenium 4 Release / Webdriver latest release
Selenium 4 is all set to release this Christmas. Simon Stewart (a founding member of Selenium) officially announced it at the recently held Selenium conference in Bangalore. Some major changes in the upcoming Selenium version 4 have been revealed. It’s time to get ahead of the curve and figure out what is going to be changed, added, and deprecated. In this article, we will take a lookTestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com3tag:blogger.com,1999:blog-2404528688198304754.post-55367985585616136202018-07-18T02:59:00.001-07:002018-07-18T02:59:39.952-07:00Install Sauce Connect on Mac OSX and Run from local
Install Sauce Connect on Mac OSX
App name: Sauce Connect
App description: sauce-connect (App: Not Available)
App website: https://docs.saucelabs.com/reference/sauce-connect/
Install the App
Press Command+Space and type Terminal and press enter/return key.
Run in Terminal app:ruby -e "$(curl -fsSL https://raw.githubusercontent.com/HomebrewTestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com2tag:blogger.com,1999:blog-2404528688198304754.post-41758483462883453302017-07-13T05:34:00.000-07:002017-07-13T05:34:18.077-07:00Handle custom tags using WebDriverSometime while doing automation we have to identify the element which have custom tags like <g> <svg> etc. For this we normally use * that will identify all elements tags in case we have to identify only specified custom tag then we can use below example for this.
<svg height="600" width="910" xmlns:xlink="http://www.w3.org/1999/xlink"
id="svgcontent" overflow="visible" x="TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-29052739881234577752017-02-05T23:02:00.001-08:002017-02-05T23:03:11.198-08:00EXTRACT CSS PROPERTY VLAUE OF PSEUDO ELEMENTS CONTAINING :after/:before CSS TAG USING JAVASCRIPT IN WEBDRIVER :
We cannot extract css properties of pseudo elements using web driver commands such as ‘.getPropertyValue’ . For this, we need to use JavaScript and execute a js script in selenium web driver.
A CSS pseudo-element is used to style specified parts of an element.
For example, it can be used to:
Style the first letter, or line, of an element
Insert content TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com15tag:blogger.com,1999:blog-2404528688198304754.post-16006073038686009432016-12-01T19:43:00.001-08:002016-12-01T22:59:01.866-08:00Useful Tips in Mobile Automation
How to use ADB (Android Debug Bridge) over wifi | ...
How to know app package and activities information...
Webdriver compare data/css between two pages
How to Re-Sign an ios App from an External Develop...
To know all devices connected to machines / simula...
Automation Testing of Android app on device using ...
Calabash ios installation steps
Calabash-ios commands
INSTALL TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com2tag:blogger.com,1999:blog-2404528688198304754.post-34052756641021092562016-11-16T03:00:00.003-08:002016-12-01T23:12:39.120-08:00Actual differences between Explicit and Implicit Waits
Hi All,
As i have already mentioned the differences Explicit and Implicit Waits in my earlier post but now we will see the actual results. there will be two conditions we can think of it what will happen if implicit wait is greater than explicit wait OR implicit wait is lower than explicit wait
lets see what will happen
<!--[if gte mso 9]>
<![endif]-->
Condition
1: TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-76014828004771841802016-11-14T23:21:00.003-08:002016-11-14T23:21:56.825-08:00WebDriver | Automation | launch/Execute on different version of Firefox
Run tests on specific Firefox version | Selenium
Firefox binary
Imagine a situation where you have to test your web application against two different versions of the Firefox browser. By default, when you instantiate FirefoxDriver, the Firefox version that is available on the PATH variable is launched. But if you want to launch a different version of Firefox, we need to use Firefox Binary. TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-60357668691435835822016-11-13T23:36:00.002-08:002016-11-13T23:36:40.439-08:00WebDriver Event Listeners
WebDriver Event Listeners
Selenium WebDriver provides a very good framework for tracking the various events that happen while you're executing your test scripts using WebDriver. Many navigation events that get fi red before and after an event occurs (such as before and after navigating to a URL, before and after browser back-navigation, and so on) can be tracked and captured
How it works?TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-26309223128972926262016-11-10T01:20:00.000-08:002016-11-10T01:20:24.917-08:00Webdriver/Selenium Difference between methods .isDisplayed() and .isEnabled()?Hi All,
I have seen so many posts where people asked the differences
between .isDisplayed() and .isEnabled() in Selenium/Webdriver automation and
found mostly people are still confused.
The methods .isDisplayed() and .isEnabled() have
nothing in common.
Here I am trying to explain the read differences between .isDisplayed()
and .isEnabled(). As name itself clearly TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-22627759332420916042016-08-01T00:17:00.000-07:002016-08-01T00:17:21.454-07:00XPath unable to find text with or   using webdriver / Hi,
Some times we face issues to create XPath of WebElement which have space in starting of it and then we check the element html source where we found &nbsp; or &nbsp is added before the element text while it display as space on UI. Normally we create the XPath to identify this element by adding space in the starting of it but his will not identify the element. There are TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-30863013357867499102016-07-22T04:42:00.002-07:002016-07-22T07:16:10.637-07:00Available Android app of Testeverything SiteHi,
Now you view the TestEverything Site updates on your Android mobile.just download the android app
Please refer the below link to download the apk file of Teverything Site.
https://drive.google.com/file/d/0B27kZ9NQHijSQnJtc1RYdGVyR2M/view?usp=sharing
Download TesteveryThing APK file
TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-88372205614198590912016-07-03T22:53:00.006-07:002016-07-21T22:02:26.936-07:00Scroll the WebGrid using selenium webdriverHi,
Sometimes in webpage there is web table grid present on page and we need to scroll the grid to access the element information. Because of asynchronous call data will not load completely until unless you scroll the grid.
From wiki..
Synchronous means that you call a web service (or function or whatever) and wait until it returns - all other code execution and user interaction is stopped TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-13529225246882655562016-05-17T04:46:00.004-07:002016-07-21T22:03:05.900-07:00Verify Broken Links
Verify Broken Links
Hi All,
Now we will learn how to validate broken links on page using WebDriver and java http methods. There are so many open source free tools available in market. Like Xenu we can validate the same but if we have to validate multiple web pages like >300 then it will be very tiresome task to enter each page URL.
Approach:
First we will open the webpage using web TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-36441075727487619132016-03-16T00:09:00.001-07:002016-04-04T21:28:26.142-07:00Webdriver | Implicit wait vs Explicit wait vs Fluentwait
Implicit Wait:
An implicit wait is to tell WebDriver to poll the DOM for a certain amount of time when trying to find an element or elements if they are not immediately available. The default setting is 0. Once set, the implicit wait is set for the life of the WebDriver object instance.
WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-28991805304906602042015-12-22T23:25:00.000-08:002015-12-24T02:44:54.473-08:00Common Issues While Creating Performance ScriptsCommon Issues While Creating Performance Scripts When you start load testing a web site (especially if this is the first load test in your life) you may see a lot of errors in the report. Possibly you will even have to stop the test before it completes, because at some point in time it becomes clear that something goes wrong. If the problem is not so obvious, it is still recommended to check the TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-66277873040220672342015-08-04T23:00:00.005-07:002015-08-04T23:03:21.736-07:00How to use ADB (Android Debug Bridge) over WiFi | Android automation
Whenever we work with
Android mobile app automation we have to connect the device using USB cable. We
can connect the device over Wi-Fi. To get rid of from the USB there
is a super simple way! All you need is a USB cable (for the initial setup) and
have both devices in the same network. This will work for non-rooted devices also.
Precondition:
Your system and device must be TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-31227030287440358852015-07-25T03:30:00.001-07:002015-07-29T22:08:21.286-07:00How to know app package and activities information without having apk | android app | Appium
How to know app package and activities information without having apk | android app | Appium
In Android app mobile automation,we need apk file of app but sometimes we have to perform action on inbuild app(pre installed) which come with device like call,sms etc.. for this we do not have apk file. Basically in android app automation we need app package information and app activities. In TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0United States39.0959629363055 -105.4687513.739472436305498 -146.777344 64.45245343630549 -64.160156tag:blogger.com,1999:blog-2404528688198304754.post-31363113704020380182015-07-17T11:39:00.000-07:002015-07-17T11:39:09.459-07:00WebDriver compare data/css between two pagesHi All,
In Web based project like implemented in CQ5 where we have to check same site for different country. For this we have to rollout/replicate some/all pages for different countries OR I can say downloaded/uploaded the production data in testing environment or vice versa.
After this we have to validate page static data (like text) with production site Data, page wise validation.
E.g. TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0tag:blogger.com,1999:blog-2404528688198304754.post-79358784790359743792015-06-17T23:48:00.000-07:002015-06-17T23:48:17.274-07:00 Difference between action.build().perform() and action.perform()
In Webdriver, handling keyboard events and mouse events (including actions such as Drag and Drop or clicking multiple elements With Control key) are done using the advanced user interactions API . It contains Actions and Action classes which are needed when performing these events. In order to perform action events, we need to use org.openqa.selenium.interactions.Actions class.
The build() TestEverythinghttp://www.blogger.com/profile/10784625324992768121noreply@blogger.com0