Posts

Available Android app of Testeverything Site

Image
Hi, 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

Scroll the WebGrid using selenium webdriver

Hi, 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 until the call returns. Asynchronous means that you do not halt all other operations while waiting for the web service call to return Here I have written the method that will scroll your grid until it reach to end of data row. Note:  ElementXpath will be your data table rows xpath like   ElementXpath = "//table//tr"; public static void ScrollView(WebDriver driver,String ElementXpath) throws Exception { int elemntCountBeforeScroll= driver.findElements(By.xpath(ElementXpath)).size(); if (elemntCountBeforeScroll>0){ WebElement element = driver.findElements(By.xpath(...

Verify 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 driver and get all the links having <A> tag. For finding the link URL, we will get the “href” property value of all the links present in webpage. In this way we will store the all the links URL present on webpage. We  have to exclude those links which having href property value like java script, hash(#) or mail to etc… because these links either referring to same page or refer to outlook mail like mail to link present in contact section. Now we have the entire link’s URL, one way to open each URL using WebDriver but it is not advisable to use this approach because it will take too ...

Webdriver | Implicit wait vs Explicit wait vs Fluentwait

Image
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 ); driver . get ( "http://somedomain/url_that_delays_loading" ); WebElement myDynamicElement = driver . findElement ( By . id ( "myDynamicElement" )); When to use : Not recommended Explicit wait: An explicit waits is code you define to wait for a certain condition to occur before proceeding further in the code. WebDriverWait by default calls the ExpectedCondition every 500 milliseconds until it returns successfully. WebDriver driver = new FirefoxDriver (); driver . get ( "http://somedomain/url_that_delays_loading" ); WebElement myDyn...

Common Issues While Creating Performance Scripts

Common 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 report for the errors related to each virtual user profile (i.e. to each different type of virtual users) before looking at any performance data. Issue 1:   Most probably the errors appear because you have not parameterized the HTTP requests in your profile. Note that initially all requests are recorded as is. If user use a recorded profile without any modifications. Performance tool will simply repeat all the same requests with the same values of all parameters. However some values should be unique for each session. You can check the “Logs” folder for errors and find the first ...

How to use ADB (Android Debug Bridge) over WiFi | Android automation

Image
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 in the same network. Android mobile must have developer option set to true. ADB (Android debug bridge) must be configure Android SDK installed. Step 1. Attach mobile via USB Step 2. Open then command terminal type  adb devices  and press enter It will confirm that your device is connected and able to recognize by android sdk. Step 3:   type: adb tcpip 5555 Step 4:To find the mobile ip type: adb shell ip - f inet addr show wlan0 Step 5: The ip address will be shown in second line like this: inet 192.168 . 1.233 / 24 brd 192.168 . 1.255 scope gl...

How to know app package and activities information without having apk | android app | Appium

Image
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 case of apk it is easy to get above information with appium. But if we do not have apk and need the app package/activities information, we can use following command: Precondition:  1. Android mobile must have developer option set to true. 2. ADB (Android debug bridge) must be configure 3. Android SDK installed. Step1. Open then command terminal type adb devices  and press enter It will confirm that your device is connected and able to recognize by android sdk. Step2: Now in mobile, open the app of which you want to get app pkg info/activities. In your m...