| Automation Interview Questions |
|
|
|
I met with my
team’s automation experts a few weeks back to get their input on when to
automate and when to manually test. The
general rule of thumb has always been to use common sense. If you’re only going to run the test one or
two times or the test is really expensive to automation, it is most likely a
manual test. But then again, what good
is saying “use common sense” when you need to come up with deterministic set of
guidelines on how and when to automate? Pros of
Automation Cons of
Automation Pros of
Manual Cons of
Manual Other
deciding factors Criteria
for automating There are two
sets of questions to determine whether automation is right for your test case: Is this test
scenario automatable? How important
is this test scenario? If you answered
#1 to both questions – definitely automate that test If you answered
#1 or #2 to both questions – you should automate that test If you answered
#2 to both questions – you need to consider if it is really worth the
investment to automate What
happens if you can’t automate? Let’s say
that you have a test that you absolutely need to run whenever possible, but it
isn’t possible to automate. Your options
are It is an executed environment for automated Tests By using test framework we can reuse all the functions scripted once repeatedly whenever required It should be modular and maintainable - Each module should be separate and independent from all the other modules - Advantage of this is that functionality available within each module can be readily expanded without effecting any other part of the system - Should define documentation standards and template Advantages of Framework n flexibility to manage all files n Maintenance n Easy to change the testdata or scripts. n Error handling can be done effectively There is a single script
which is used for all the modules. Internally it makes use of some more
scripts/ compiled modules, depending on certain conditions. All the scripts are
re-usable in nature. They are executed while testing different modules of the
application. No script has got object/
window names hard coded in it. All the object/ window names are derived
from the excel sheet. 1 - Path of
the directory into which scripts are extracted. 2 - “ExcelFiles.xls”
This file contains list of data tables to be executed. It can be found in “..\\WR
Scripts\Excel” directory. This is the acts like a wrapper data table 3 - All the
relative paths are derived in the script. The data tables, compiled
modules, GUI map files are loaded in the
script. 4 - Second
data table is opened here which runs in a nested for loop. This
data table contains all the input data . This second data table
plays a crucial part in the execution of business scenarios. 5 - There is a
switch-case statement that is defined here. It has equivalent case definitions for various object types, validations, script/
function calls etc. 6 - Finally at
the end of the two for loops all the compiled modules, GUI map, data tables are closed and unloaded. WR
Scripts | |--SCRIPTS |--EXCEL |--GUI |--Compiled Modules |--SetupDocs |--RESULTS |--Check list Let
Object Names/ : Derived from
the header of data table. There is a Validation/ keyword prefixed to the each
parameter of header. This Special actions key word
plays a vital role in deciding which case to be executed inside
the TSL script. Ex : If it is “WIN_LoginPage” then based on the keyword i.e, “WIN” the corresponding case statement. will
be executed In
which “set_window()”
function will
be executed. Rephrase the above statement (example). Input values Formulating conventions
: ·
Conventions need
to be formulated for different case statements to be executed. Ex
: 1. WIN_LoginPage case "WIN": 2. BTN_Submit case "BTN":
Data Driven scripts are those application specific scripts coded in the
automation tools and
then modified to accommodate varible data… Variable will be used
for key application input fields.
Main script
Load the relevant Script, Excel files from Plan_Data folder
WR
Scripts | |--Tests |--Scenario |--GUI |--plan_data |--LIB
Modular script
Closingestdata access table..
It is first complete role based test automation system designed to enable functional experts to build , data drive and eecute test automation without any programming knowledge Its basically is an improved version of keyword driven Testing And Best part is that it allows English representation of Test cases… Actually one needs to define test flows througha web based interface by declaring what steps to take and what data to be used… It can also generates a Test plan based on test definations developed using BPT |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||