Thursday, February 21, 2019

Test Complete - Hybrid Framework.

TEST COMPLETE :
----------------------------
Automated testings success stories :
---------------------------------------------
 * Action Based Testing (ABT)
 * Test Design Vs Testing automation
 * Players in different stages of the sprint
 * The process & Break down
 * Results

Action Based Testing :
* Test design
* Interface Mapping
* Actions
 - System level actions (Low level, generic)
 - Application level actions (High level, business functional, specific - combination of multiple functions)
 - Intermediate Actions (mid level, driving dialogs and navigation)
 - Custom actions ( Programmed - Library files)

High leve Testl Design - Test Development plan - Define the Chapters
-------------------------------------------
Test Module 1 ....2 .....Test Moudle N      }->
                        }
Objectives 1 .....2 .....Objectives         }-> Create the Chapters
                        }
Test Cases1 ....2 .....Test Cases           }->
                        }


Actions                      -> Create the Words

Automation                      -> Make the words work


+ Interaction Test - Test data Table &
+ Business test - Test data table.


*Test design Vs Test Automation
* Test design
 - looks at the bigger picture
 - Top down approach
 - Aggregate test into modules with common objectives
 - Separate business level objectives and UI level objectives.

* Test Automation
 - Interface mapping ( be it web, desktop or mobile)
 - Action library
   * System level actions - click, select etc.
   * Intermediate level actions - actions created by gathering properties from applications.
   * Application level actions - combination of lower level actions and /or  intermediate level action.
   * Custom actions - programmable actions
- Test execution involves running test against the application and generating results report.

What is TestComplete ?
TestComplete is a Software automation tool, Developed by Smart bear, we can Automate the software testing process using it. TestComplete supports various types of automation testing like – unit testing, Smoke testing, Regression testing, Functional, Distributed testing and load testing.

How many check points you know in TestComplete?
TestComplete has the number of Check points like –

Create File Checkpoint
Create Object Checkpoint
Create Property Checkpoint
Create Web Service Checkpoint
Create Database table checkpoint and so on….

What is NameMapping in TestComplete?
NameMapping in most important feature in TestComplete, using Name Mapping, we can provide the Custom Name of the object. Normally when we get the Object in TestComplete its shows like below-

Sys.Process (Iexplorer, 1).page (“www.google.com”).form (‘’google”).Panel (“Container”).Table (“lnkDatails”).cells (1, 1)……
It’s very difficult and hard to remember and manage; hence we can provide the custom name for each item using some unique values like –

Sys.IE.PageName.Form.linkDetails.linkName

What is a shortcut key to stop recording?
Using SHIFT-F11 we can stop the recording

What is Data Driven Testing in TestComplete?
Run our Test with different set of input data to ensure the application works as expected for various input values. This testing approach is called data-driven testing. We can preformed data driven testing using CSV file, Text File, Excel and Database .

How to handle exception in TestComplete ?

Using On Error Resume Next statement we can handle the exception it TestComplete. On Error Resume Next Statement skip the Exception window and go for the next operation.

How to recognize Objects in TestComplete ?
There are different way to recognize the Object in TestComplete Like –

Recording
Object Spy
       Find, FindAll, FindChild, FindAllChildren

Which Technology is supported by TestComplete?

TestComplete Supports Wide range of Application and Technologies like – Windows, .NET, WPF, Visual C++ Visual Basic, Java Web Applications, and Web Services.

Which Scripting language that can be used in TestCompete ?

Test Complete Supports – VBScript, Jscript, C# Script, c++, Delphi.

Is it possible to perform record and play mechanism in TestComplete ?

Yes, TestComplete Supports Record and Payback mechanism there are two mechanisms in TestComplete Recording.

Record – Starts test recording or resumes recording after pause. Default, SHIFT-F1.
Low –Level- Record – Starts recording a new low-level procedure based on screen coordinates. Default, SHIFT-F4

Which Browsers supported by TestComplete till date?

TestComplete supports the number of browsers.

Internet Explorer
Mozilla Firefox
Google Chrome
Safari
Opera Browser
What are the different ways of capturing objects in TestComplete?

There are three different way for capturing the Object in TestComplete.

Recording
Object Spy
        Find, FindAll, FindChild, FindAllChildren
What is the difference between Find and FindAll Method in TestComplete?

Find -Find Method is used to search desire object from the object hierarchy, (only single object). Find Method searches the Object on the basis of Specified value of the Specified property.
FindAll – FindAll method is used to search desire object from the object hierarchy. FindAll Method searches the entire object that have Specified value of the Specified properties. FindAll methods are stored entire object list into an Array.
What is the difference between Find and FindAll Method in TestComlete?

FindChild – Find Child method is also same as FIND method (as mention above) it will search only Child object.
FindAllChildren – Find All Children method is same as FINDALL method (as mention above), it will be search all the children and store them into an Array.
What is Child Method?

Objects may have the children, Page is the children of Process, Process is the children of Sys object etc…
{Sys.Process (iexplorer, 1).page (“google.com”)……}

Can we get, how much Number of Childs having an Object?

Yes, We can get the number of child of the Object by using ChildCount Property of the object
Ex- count = Object.ChildCount

What are the challenges you are facing in TestComplete?

There are few challenges we are face in TestComplete

Cross Browser Testing – for a cross browser testing we need to do browser level setting, if we try run our script on client machine then we need to check all browser setting.
Working with Window Popup – while you are trying to Upload or download file from the application some time it may get fail.
Working with Dynamic Object – handling such a object which is change every time or occurred suddenly.
Page Loading – Unable to predict page load time
Technical Support – There is no more support/Help available for TestComplete.

Is it possible to compared strings in TestComplete?

Yes we can do it by using aqString object like below –

aqString.Compare(String1, String2, Case Sensitive)

How to handle exception in TestComplete ?

Using On Error Resume Next statement we can handle the exception it TestComplete. On Error Resume Next Statement skip the Exception window and go for the next operation.

How to recognize Objects in TestComplete ?

There are different way to recognize the Object in TestComplete Like –

Recording
Object Spy
       Find, FindAll, FindChild, FindAllChildren

What Happen? If your computer resolution will be change, your same script will be run or it will get fail?

There are two possibilities –

Yes! Our script gets fail in case if we implement Record and Playback methodology.
Yes! Our Script will be run successfully If we Implement Name mapping or Descriptive programming methodology.

How to recognize similar object in your application?
We can use object ID for each or we can have assigned a unique identity for similar object by using Name Mapping Concept.

How to Test your application on different Node or on different workstation?
We can run our same script on different Node /different workstation by implementing the concept of Network Suite (But in this case entire client machine should be a part of Network)

Which Framework you are using for automation in TestComplete ?
We are using customize framework for automation. It is a combination of Keyword driven and Data Driven framework.