Sunday, 18 December 2016

selenium webdriver - Java - IDE - Browser setup

For setting up our first test need remaining components:

JAVA:


We'll be using java 7 or sdk 1.7.


Remember to download the version for your OS 32/64 bit.

also refer link for installation.

IDE - (IntelliJ)



Download and install community version.

BROWSER (Firefox 47.010)


last but not the least get the appropriate FF version(47.0.1) compatible with Selenium 2.53.1. Download and install from link below.
https://ftp.mozilla.org/pub/firefox/releases/47.0.1/win64/en-US/

Remember to pick download distribution 32/64bit. Make sure you have only one FF version installed otherwise webdriver fails to detect default version and throws exception.

Summary: These are remaining component for basic webdriver setup, once we have them all next step will be to setup our project and create our first webdriver test...

Feel free to ask why java 7? why IntelliJ ? and what about FF 47.0.1 ? 


Friday, 16 December 2016

Selenium Webdriver - Getting Selenium jars

let's get started ....





Download two files
(once zip file is downloaded extract into a folder)

Summary: up till now we have just acquired specific version of Selenium webdriver (2.53.1), 
Q: why not we are selecting webdriver 3? 
ANS: simple answer Selenium 3 requires Java8 and for starter keeping things simple(nothing else). The zip file is exactly for that purpose, to make selenium work with Java.
No need to worry about the word Java we will be getting hands on with that, for now its important where this fits in the big picture.



Disclosure:
There is no secret the best resource for learning Selenium/webdriver is its official documentation.


And off course all other resources youtube/urls are available, key is to stay focus and concentrate one topic at a time.

 Please feel free to ask any question even if you want to ask what is .jar ? frankly would recommend google for that but definitely provide the reason why its there ...

Will back with brief description of another component soon.

Sunday, 17 August 2014

Getting to Know Your Application

Before you begin creating tests, you need to determine what exactly you want to test in your application. To do this, you need to analyze your application in terms of its business processes—the distinct activities that customers perform in your application to complete particular tasks.
  • How is the application divided? Are there separate areas for each activity? What are these areas? What are these activities? What are the expected outcomes for each activity?

  • What screens need to be tested in each of these areas? What objects need to be tested in each screen?

  • What activities might be used in more than one scenario? (For example, logging on to the application.) Think of these as "reusable" parts.
  • Analyzing your application in terms of its separate parts can help you to design your tests so that they comprise small, modular units, which are easier to understand, debug, and maintain over time.

  • What business processes might users perform using this application? scenarios might include making flight reservations, cruise or hotel reservations, or even registering on the Web site.

  • Consider which development environments need to be supported for testing purposes. 

(Reference: QTP documentation)

Thursday, 17 May 2012

Core Performance-Testing Activities




Activity 1. Identify the Test Environment. Identify the physical test environment and the production environment as well as the tools and resources available to the test team. The physical environment includes hardware, software, and network configurations. Having a thorough understanding of the entire test environment at the outset enables more efficient test design and planning and helps you identify testing challenges early in the project. In some situations, this process must be revisited periodically throughout the project’s life cycle. 


Activity 2. Identify Performance Acceptance Criteria. Identify the response time, throughput, and resource utilization goals and constraints. In general, response time is a user concern, throughput is a business concern, and resource utilization is a system concern. Additionally, identify project success criteria that may not be captured by those goals and constraints; for example, using performance tests to evaluate what combination of configuration settings will result in the most desirable performance characteristics.

Activity 3. Plan and Design Tests. Identify key scenarios, determine variability among representative users and how to simulate that variability, define test data, and establish metrics to be collected. Consolidate this information into one or more models of system usage to be implemented, executed, and analyzed.
Activity 4. Configure the Test Environment. Prepare the test environment, tools, and resources necessary to execute each strategy as features and components become available for test. Ensure that the test environment is instrumented for resource monitoring as necessary.
Activity 5. Implement the Test Design. Develop the performance tests in accordance with the test design.
Activity 6. Execute the Test. Run and monitor your tests. Validate the tests, test data, and results collection. Execute validated tests for analysis while monitoring the test and the test environment.
Activity 7. Analyze Results, Report, and Retest. Consolidate and share results data. Analyze the data both individually and as a cross-functional team. Reprioritize the remaining tests and re-execute them as needed. When all of the metric values are within accepted limits, none of the set thresholds have been violated, and all of the desired information has been collected, you have finished testing that particular scenario on that particular configuration.