Thursday, February 19, 2015

Pause and break commands in selenium IDE

Enter your email address:


Delivered by Mindq Software Testing Tutorials
Break command in selenium IDE: 


Break command will halt the currently running test case, and wait for the user to press (Pause/resume) or step button to continue the  execution process. It is very useful for debugging the test case, but we should be careful while using this command because it will force automated test cases to hang until a user click on (Pause/resume) or step to continue the test execution

Command Target Value
open https://www.google.co.in/
pause 3000
assertElementPresent id=gbqfq


In the above example  open command will open the google page after that pause command will stop the execution for 3 seconds, after that
break command will get executed and halts the test case execution until user press (Pause/resume) or step button


Pause command: 

pause command will wait for specific time(sleep time) in milliseconds. Test case execution will continue after specified time in "Target" filed


Command Target Value
open https://www.google.co.in/
pause 3000
assertElementPresent id=gbqfq

In the above example first it will open google page after that it will wait for 3000 milliseconds i.e 3 seconds after that assertElementPresent command will get executed.




Related articles: While loop in selenium IDE , Store values in selenium IDEHow to change default timeout in selenium IDE









Monday, February 16, 2015

Selenium IDE commands

Subscribe To get updates

Enter your email address:


Delivered by Mindq Software Testing Tutorials

Selenium IDE commands
addCollection
addCollectionAndWait
addLocationStrategy
addScript
addScriptAndWait
addSelection
addSelectionAndWait
addToCollection
addToCollectionAndWait
allowNativeXpath
allowNativeXpathAndWait
altKeyDown
altKeyDownAndWait
altKeyUp
altKeyUpAndWait
answerOnNextPrompt
assertAlert
Assert commands in selenium IDE
assertAlert
assertAlertNotPresent
assertAlertPresent
assertAllButtons
assertAllFields
assertAllLinks
assertAllWindowIds
assertAllWindowNames
assertAllWindowTitles
assertAttribute
assertAttributeFromAllWindows
assertBodyText
assertChecked
assertConfirmation
assertConfirmationNotPresent
assertConfirmationPresent
assertCookie
assertCookieByName
assertCookieNotPresent
assertCookiePresent
assertCssCount
assertCursorPosition
assertEditable
assertElementHeight
assertElementIndex
assertElementNotPresent
assertElementPositionLeft
assertElementPositionTop
assertElementPresent
assertElementWidth
assertEval
assertExpression
assertFor
assertHtmlSource
assertLocation
assertMouseSpeed
assertNotAlert
assertNotAllButtons
assertNotAllFields
assertNotAllLinks
assertNotAllWindowIds
assertNotAllWindowNames
assertNotAllWindowTitles
assertNotAttribute
assertNotAttributeFromAllWindows
assertNotBodyText
assertNotChecked
assertNotConfirmation
assertNotCookie
assertNotCookieByName
assertNotCssCount
assertNotCursorPosition
assertNotEditable
assertNotElementHeight
assertNotElementIndex
assertNotElementPositionLeft
assertNotElementPositionTop
assertNotElementWidth
assertNotEval
assertNotExpression
assertNotFor
assertNotHtmlSource
assertNotLocation
assertNotMouseSpeed
assertNotOrdered
assertNotPrompt
assertNotSelectOptions
assertNotSelectedId
assertNotSelectedIds
assertNotSelectedIndex
assertNotSelectedIndexes
assertNotSelectedLabel
assertNotSelectedLabels
assertNotSelectedValue
assertNotSelectedValues
assertNotSomethingSelected
assertNotSpeed
assertNotTable
assertNotText
assertNotTitle
assertTitle
assertNotValue
assertNotVisible
assertNotWhetherThisFrameMatchFrameExpression
assertNotWhetherThisWindowMatchWindowExpression
assertNotXpathCount
AssertVisibile
AsertValue
assignIdAndWait
answerOnNextPrompt
assignId
assignIdAndWait
break
captureEntirePageScreenshot
captureEntirePageScreenshotAndWait
check
checkAndWait
chooseCancelOnNextConfirmation
chooseOkOnNextConfirmation
chooseOkOnNextConfirmationAndWait
click
clickAndWait
clickAt
clickAtAndWait
close
contextMenu
contextMenuAndWait
contextMenuAt
contextMenuAtAndWait
controlKeyDown
controlKeyDownAndWait
controlKeyUp
controlKeyUpAndWait
createCookie
createCookieAndWait
createCookieAndWait
deleteAllVisibleCookies
deleteAllVisibleCookiesAndWait
deleteCookie
deleteCookieAndWait
deselectPopUp
deselectPopUpAndWait
doubleClick
doubleClickAndWait
doubleClickAt
doubleClickAtAndWait
dragAndDrop
dragAndDropAndWait
dragAndDropToObject
dragAndDropToObjectAndWait
dragdrop
dragdropAndWait
dragdropAndWait
echo
endFor
endForAndWait
endWhile
endWhileAndWait
fireEvent
fireEventAndWait
focus
focusAndWait
goBack
goBackAndWait
goto
gotoAndWait
gotoIf
gotoIfAndWait
gotolabel
gotolabelAndWait
highlight
highlightAndWait
echo
endFor
endForAndWait
endWhile
endWhileAndWait
fireEvent
fireEventAndWait
focus
focusAndWait
goBack
goBackAndWait
goto
gotoAndWait
gotoIf
gotoIfAndWait
gotolabel
gotolabelAndWait
highlight
highlightAndWait
ignoreAttributesWithoutValue
ignoreAttributesWithoutValueAndWait
keyDown
keyDownAndWait
keyPress
keyPressAndWait
keyUp
keyUpAndWait
label
labelAndWait
metaKeyDown
metaKeyDownAndWait
metaKeyUp
metaKeyUpAndWait
mouseDown
mouseDownAndWait
mouseDownAt
mouseDownAtAndWait
mouseDownRight
mouseDownRightAndWait
mouseDownRightAt
mouseDownRightAtAndWait
mouseMove
mouseMoveAndWait
mouseMoveAt
mouseMoveAtAndWait
mouseOut
mouseOutAndWait
mouseOver
mouseOverAndWait
mouseUp
mouseUpAndWait
mouseUpAt
mouseUpAtAndWait
mouseUpRight
mouseUpRightAndWait
mouseUpRightAt
mouseUpRightAtAndWait
removeScript
removeScriptAndWait
removeSelection
removeSelectionAndWait
rollup
rollupAndWait
runScript
runScriptAndWait
select
selectAndWait
selectFrame
selectPopUp
selectPopUpAndWait
selectWindow
sendKeys
sendKeysAndWait
setBrowserLogLevel
setBrowserLogLevelAndWait






 

Friday, February 13, 2015

How to generate random number in selenium IDE

  Subscribe to get Updates Enter your email address:


Delivered by Mindq Software Testing Tutorials
How to generate random number in selenium ide

To generate random number in selenium we need to use javascript in command like this 

Here iam using store command to store random value 


CommandTargetValue
storejavascript{Math.floor(Math.random()*11)}R
echo${R}


 Random value will get stored in the variable R.

With the help of echo command we can print value of R

Tuesday, February 10, 2015

Commonly used selenium IDE commands

  Subscribe to get Updates Enter your email address:


Delivered by Mindq Software Testing Tutorials


Open:
    This command will opens a page using a URL(uniform resource locator) for example if you want to open google page with the open command you can do like this

command Target Value
open https://www.google.co.in/

Click:This command will click an element which is given in the "Target" filed. To click gmail link we can use click command like this


command Target Value
open https://www.google.co.in/
click link=Gmail

Click And Wait: This command will click an element which is given in the "Target" fields, and also it will wait for page to load



command Target Value
open https://www.google.co.in/
clickandWait link=Gmail

In this example it will wait for gmail page to load after cliking on that link, most of the cases everyone will use this command only because it will run successfully even page take some time to load

Verify Title: This command will verify the title with title given in the Target filed. If the title given in the Target filed and Title present on the page not matched then it will shows test case as failed but execution will continue on the next command.

Assert Title:
This command will verify the title with title given in the Target filed. If the title given in the Target filed and Title present on the page not matched then it will shows test case as failed and execution will be stopped

Verify Text Present: It will verify the given text in the target field is somewhere present on the page or not

Verify Element Present: 

 It will verify the given HTML element in the target field is somewhere present on the page or not

VerifyText:
It will verify text present on particular web element. 




Sunday, February 8, 2015

Test case

  Subscribe to get Updates Enter your email address:


Delivered by Selenium99

Test case : 
Test case defines set of conditions to test the application with respect to requirements. Usually it will be derived from the Test scenario, Test case is the step by step process to cover all possible ways of test scenario. 1 Test scenario may have 1 or more Test cases.

Fields in test case document:

Field Description
Test Case ID Test case id is always unique for future reference, for ex: login_TC_1
Test Scenario ID Test scenario id is also unique for future reference, for ex: login_Sc_1
Test Case Description  Detailed description about the test case
Preconditions What are the steps need to run before executing the current testcase
Test steps All required steps to execute the current test case
Test Data Data required to execute the current test case for ex: To test login functionality we need credentials ex:username is admin, password 12345. Here admin,12345 is the test data for this test case 
Priority Importance of the test case in terms of customer perspective
Expected Result What we are expecting after execution of this test case
Actual Result  what we are getting after execution of test case
Result If Expected result and actual result are same then result pass otherwise fail 

Tuesday, February 3, 2015

What is compatibility testing?

Subscribe To get updates

Enter your email address:


Delivered by Mindq Software Testing Tutorials
It is a part of non functional tests, In this QA/Test Engineer need to check the compatibility of the application or software with the various software and hardware components to confirm whether it is working fine on different environment or not


Depends on the Applications/software QA will do the following compatibility Tests

Operating Systems: QA need to check whether Application/software to be compatible with different Operating Systems(OS) like Windows family (XP,7,8 etc) , Linux , Mac OS etc.

Mobile platforms : QA need to check Application/software is compatible with mobile platforms like Android , iOS,blackberry etc

Browsers: QA need to check compatibility of application with different browsers like Internet Explorer,Firefox, Google Chrome , Safari,opera mini etc.


Hardware configurations :  QA need to check Application / software to be compatible with different hardware configurations .
   
Compatibility with other Softwares: QA need to check application/software to be compatible with other softwares
For ex: verifying exported documents in various applications like ms office and open office 

Network: QA need to check  performance of the application with different routers, Bandwidth and Capacity. 
   
Devices : QA need to check  compatibility of  software with different devices like USB  Devices, Printers and Scanners,cameras, bar code Readers etc
    
Saucelabs provides Over 400 OS/Browser platforms for compatibility Testing


Tags: compatibility testing in software testing ppt, compatibility testing example, compatibility testing means, software compatibility testing approach, compatibility testing interview questions, compatibility testing in software testing with example browser compatibility testing tools,browser compatibility testing checklist,how to do browser compatibility testing,browser compatibility testing ppt,browser compatibility testing issues, what is browser compatibility testing in software testing, browser compatibility testing definition