Session Objectives How to Debug PTF test case/Script Session-6 DebuggingSlide 2.

Slides:



Advertisements
Similar presentations
Support.ebsco.com Grouping Databases by Subject in EBSCOadmin Tutorial.
Advertisements

Support.ebsco.com Using the Search History Feature Tutorial.
Welcome to the Online Employment Applicant Tutorial Click here for next screen.
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
WebLessons E-learning System Teacher Training. Getting Started Sign In Teacher Home.
MANAGE CONTENT WITH SHAREPOINT. An integrated Web-based system. An integrated Web-based system. Centrally store, manage and access documents using your.
How to import and edit video clips in Windows Movie Maker
EDIT MODE The HAAS Control Series PRESS THREE TIMES TO GET TO THIS PAGE (Continued on next slide) Note: SLIDE LEGEND ACTIONS INSTRUCTIONS KEYS INFORMATION.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Bullseye Bullseye was rolled out to our user base on Friday, January 30. I wanted to take this opportunity to give everyone an update on a.
Logging In Go to web site:
Neo.NET Entity Objects VisualStudio Tool Guide.
Web Content Management System Website Maintenance Demonstration Introduction to Macromedia Contribute Jamie Uprichard.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Guide To UNIX Using Linux Third Edition
Using the Unity 98 Cordless Response System Directions : Courtesy of IHC public relations.
EPOCH 1000 File Management Data Logging and Reporting
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 07 Creating Documents with Efficiency and Consistency.
Things to note... The Simple Cart is designed to give users an experience similar to other online shopping sites by separating the cart from the checkout.
Session Objectives Object Types – Query, HTML Table Purpose of the Query and Explanation How to add a Query to a PTF Test Case 2 Session 5 - Query.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
Project 3 File, Document, Folder Management, Windows XP Explorer Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
6 Copyright © 2004, Oracle. All rights reserved. Working with Data Blocks and Frames.
Introduction to Shell Script Programming
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Exploring Microsoft Office Word 2007 Chapter 7 The Advanced User Robert Grauer, Keith Mulbery,
Screen Previews for Shopping Carts and Checkout Process 10.3 release October 05, 2010.
Introduction to the WebBoard Terry Dennis. The WebBoard - Our Connection The WebBoard URL is
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Drinking Water Infrastructure Needs Survey and Assessment 2007 Training.
Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Session Objectives • Login to PeopleSoft Test Framework(PTF)
1. To start the process, Warehouse Stationery (WSL) will invite you to use The Warehouse Group Supplier Electronic Portal and will send you the link to.
Session Objectives How to create a Library Test Script How to use the Library Test Script in main PTF Script Object Types – Test/Exec Usage of Object Type.
Moodle with Style Integrating new technologies to empower learning and transform leadership.
VB – Debugging Tools Appendix D. Why do we need debugging? Every program has errors, and the process of finding these errors is debugging Types of errors.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Using Advanced Options Lesson 14 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft Word 2013.
Chapter Three The UNIX Editors.
State of Michigan Learning Management System (LMS) for Training Coordinators Updated: 10/29/2015.
1 Using Conditional Formatting & Data Validation Applications of Spreadsheets.
Links take you to…  Different slides in your presentation  A different PowerPoint presentation  Any program - (Word can be used for example to complete.
Session Objectives Reserved Words and Object type Conditional Usage of Reserved Words Usage of Conditional Logic 2.
ExitTOC TIMSNT Introduction 2003-Part 3 1 Introduction to TIMSNT-Part 3 Part 3: Menu Items Runs, Driver Directions, Stops, Routes and Options Use the buttons.
WESS Safety Authority WESS Module SA-2 SA Functions Modify Existing User Accounts.
THE C PROGRAMMING ENVIRONMENT. Four parts of C environment  Main menu  Editor status line and edit window  Compiler message window  “Hot Keys” quick.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
Easy WP Guide V2.6 for WordPress 3.8. easywpguide.com Adding Tags within your Post Adding Tags whilst editing your Post, will automatically assign those.
Perfecto Mobile Automation
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Chapter 11 Collaboration Features for Workbooks Microsoft Excel 2013.
Customize Your View of Data Training Presentation for Supply Chain Platform: BAE Systems May 2015.
© 2015 Ex Libris | Confidential & Proprietary Yoel Kortick Senior Librarian Cataloging introductory flow.
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
Working with Data Blocks and Frames
Computer Programming I
How to customize your Microsoft SharePoint Online website
How to customize your Microsoft SharePoint Online website
Managing Rosters Screener Training Module Module 5
How to customize your Microsoft SharePoint Online website
HP ALM Test Lab Module To protect the confidential and proprietary information included in this material, it may not be disclosed or provided to any third.
Selenium IDE Installation and Use.
Presentation transcript:

Session Objectives How to Debug PTF test case/Script Session-6 DebuggingSlide 2

Debugging A Test Case Debugging a test in PTF makes it structured and user – friendly and allows us to make modifications for better understanding. Debugging can be done once a test is saved and a log is available. There are 2 ways to debug a test: Debugging Test Editor Debugging Log Session-6 DebuggingSlide 3

Debugging in Test Editor Step Into - Executes the current step and advances to the next step. Step Over - Executes the current step of the test and advances to the next step, unless the next step calls another test. Toggle Break - Sets a break point at the selected step or removes an existing breakpoint. Clear All Breaks - Removes all break points. Session-6 DebuggingSlide 4

Toggle Breaks Toggle breaks set a breakpoint at the selected step to pause a test or remove an existing breakpoint. Toggle break icon is available on the Test Editor It helps us to stop a test midway and make any changes if required on the online page. To add a toggle break, take the cursor to the sequence next to where you want to pause and click on the icon. To remove a toggle, select the sequence and click on the icon. Session-6 DebuggingSlide 5

Debugging - Toggle Toggle Break Test will pause after sequence 105 is executed. Session-6 DebuggingSlide 6

Stop on Error Execution is terminated on error if the ‘stop on error’ menu is clicked before executing the test. This option helps the user find the exact test which failed the Shell Test. It also prevents the execution of the remaining test and saves time in the case of large tests. Stop on error Session-6 DebuggingSlide 7

Streamline/Improve Performance A script can be debugged in test editor by using the following Modify test data in value column Log messages Page Prompt Error Handling Session-6 DebuggingSlide 8

Streamline/Improve Performance Log Message is intended to increase understanding of the test. A log message allows us to insert any message between the test steps without affecting the running of the test. Session-6 DebuggingSlide 9

Page Prompt A Page prompt is used to skip navigation steps and reach the desired online page directly. Replaces explicit navigation in the test and takes the user directly to the component search page by URL manipulation PTF page prompting steps make tests more robust and repeatable by simplifying test data Opens a component based on the MENU.COMPONENT.MARKET recognition string If the component has a search page, use the Page.PromptOk action to close the search page. Session-6 DebuggingSlide 10

Steps to Add a Page Prompt Go to the required online page Make a note of the Menu.Component.Market string from the URL address Alternatively, press Ctrl + J to find out the string Open the test editor Inactivate/delete all the navigation steps Insert a new row above the navigation steps Add Page/Prompt – To add a Page Prompt Enter the above string in recognition column Enter ADD/UPDATE in the value column for Add/Modify actions Session-6 DebuggingSlide 11

How to Pick a String from an Online Page The string can be picked up directly from the URL. This represents Component.Menu.Market. Press Ctrl+J on the online page. This page opens up. The component and menu names are available here. The Market name is normally GBL Session-6 DebuggingSlide 12

Screen Shot Log message to explain the steps below is inserted. Menu.Component.Market string for job data page UPDATE action for editing job data Navigation steps inactivated Session-6 DebuggingSlide 13

PTF Error Handling To handle errors and warning messages that pop up during the test, PTF uses message recognition. Boeing Recommendation – Capture Warning message only. Use Message Recognition The link becomes activated when Error Handling is checked The number of the warning message, along with desired action is entered here Session-6 DebuggingSlide 14

Debugging Log Log can be debugged using the followings Flags in log file Screenshots of the error Highlight errors Session-6 DebuggingSlide 15

Flags in Log File Each step of the log has a flag attached to it. The red flag in the logs shows that the step in the test is failed. When it is expanded, the logs also give the reason for the failure. Using the information, the failed step must be fixed The following flags are available in log: Information message only or Information message only or Step was successful or Step was successful, but or with a warning Step failed or The test encountered a or condition that it was not configured to handle Session-6 DebuggingSlide 16

Log Message for Debugging The Step with an error is marked in red An explanation of the error is given Session-6 DebuggingSlide 17

Screen shots of the Error A Screenshot option is available on the test editor. Whenever a test fails, PTF provides a screenshot of the execution at that point in time which helps in fixing the failed steps. By default, the option to take a screenshot is enabled; however, it can be turned off. Log.SnapShot allows to capture the Screen. Session-6 DebuggingSlide 18

Screen shot- Log Clicking on the Icon will open up the Screenshot of the error. Session-6 DebuggingSlide 19

Screenshot- Error An Image opens up along with a display of sequence number. Session-6 DebuggingSlide 20

Highlight Errors Highlights the failed steps in a log message. A failed step with an error message will be highlighted which helps locate the failed steps easily in case of a huge shell test failure. Highlight errors icon is enabled. Session-6 DebuggingSlide 21

Screenshot The execution was stopped as stop on Error was enabled. Session-6 DebuggingSlide 22

Training Hand out the Training Material To be completed in 30 minutes Discussion Walk through the Log Explaining the log Results Highlight the Key words and lesson learned Session-6 DebuggingSlide 23

Q & A and Comments Session-6 DebuggingSlide 24