Web click & script protocol


Web click & script protocol records the actions which are performed against the browser
(or) it will record the only browser specific actions. There is no correlation values in Vugen
script.

Functions:
1. web_browser(): Performs an action on a browser.
2. web_edit_ field(): Enters data for a text field/ input purpose
3. web_image_submit(): Emulates a user clicking on an image that fires a submit request.
4. web‐image_link(): Emulates a user clicking on an image that is a Hyper text link
5. web_list(): Select an item from a list control/Drop down list
6. web_radio_group(): selects one button from a radio button group.

Click & Script:
1. Records the browser specific actions
2. Correlation is not required
3. Recommended for GUI based apps.
4. Records the objects in terms of X.Y co‐ordinates
5. Identified some deviations in response times when compared with HTTP Protocol

HTTP/HTML
1. Records the communication b/w client & server.
2. Correlation is required
3. Recommended for any web apps which is communicating in HTTP Protocol
4. Records the objects in terms of GET & POST Requests
5. It will give accurate Response times.

Record time options:
Recording
1. GUI Level: It will generate a step for every user actions
2. HTML Level
3. URL Level

Challenges and Enhancements:
 While recording your script password will be present in encrypted format, we have to
change to normal format. Ex: set value=jojo; set value= bean
 All the clicks will be recording in screen co‐ordinates, we have to convert them to action
format.

NOTE: If image co‐ordinates are changing causes script failure.

Advantages:
1. Correlation is not required
2. Easy to understand & easy to maintain the script

Disadvantages:
1. Response times are slightly different from actual
2. It will generate object for every user action.

Pre requisites (or) Precautions while recording the script:
Which objects (Fields) would like to parameterize those fields should be modify whilerecording.
Case study 1:
I have an application which is developed in Java, my business scenario having 10 requests.
Every jsp page having 100 fields which are filling based on my previous input.
Solution: in the above scenario correlate 100s of values/ fields for every page is a differentprocess.
To avoid conducting/ implementing correlation I switched from HTTP/HTML protocol to click & script protocol.
Case study 2:
I have an application in that application having multiple tabs. As per the business flow I haveto move Tab1 to Tab2 which is not a server call.
Solution: In the above scenario Tab2 action is not a server call.
To perform continue button I have to navigate Tab1 to Tab2 which is not possible inHTTP/HTML protocol. So I moved to Click & script protocol.
Case study 3: If the application having GUI interface we can use Click & script protocol.

No comments:

Post a Comment