TestComplete Check Your Knowledge Part II Track 4: UI Functional Testing, TestComplete Question Title * 1. Please provide your name and email address Name Email Question Title * 2. You need to store the last time this Keyword Test was run and then enter that time in the log when the Keyword Test first starts running.What should you do? (More than one answer choice may achieve the goal. Select the BEST answer.) Use a project temporary variable to hold the date as a string. Use a project suite persistent variable to hold the date as a string Use a project persistent variable to hold the date as a string Use a Keyword Test persistent variable to hold the date as a string Question Title * 3. You are testing a web page. You need to run the test from Internet Explorer, Chrome and FireFox browsers.What should you do? (More than one answer choice may achieve the goal. Select the BEST answer.) Use a Browser Loop operation iterating through all browsers. Create a Keyword Test for each browser. From script open a particular browser and then call the Keyword Test. Use an If Browser Loop operation iterating through all browsers. Question Title * 4. To test an application running on Android using an USB connection, the application has to be instrumented first by adding which file that contains the required java files needed to spy on the application for TestComplete? com.smartbear.uibinder com..smartbear.testing PatchServices.jar if you use a real device through a USB connection you don’t need to instrument the Android app for Object testing in TestComplete Question Title * 5. You can instrument an Android app in TestComplete without adding any code in Eclipse or Android Studio. It can all be handled in TestComplete itself. True or False? True False Question Title * 6. What kind of Mobile testing can you perform on an iOS device connected to your TestComplete PC with a USB connection. (Choose all correct answers) Web Testing for Web based mobile apps Image based Testing for non object based testing Object based testing after instrumenting the ipa application Sensor applications with instrumenting the ipa application. Question Title * 7. You need to make a Web Service call confirm that the values returned are correct. First you need to import a Web Service into the project called Add that takes two parameters. Add a Web Service Checkpoint. In the wizard press the Select button to supply a URL and get the services. Add a Web Services project item. Add a Web Service project item to the Web Services project item. On the Web Service window press the Select button to supply a URL and get the services. Add a Web Service project item. On the Web Service window press the Select button to supply a URL and get the services. Add a XML Checkpoint. In the wizard press the Select button to supply a URL and get the services. Question Title * 8. You have a test that occasionally needs to handle unexpected windows. In order to handle unexpected windows correctly you must know the order of operations used when unexpected windows are encountered. What should you do? (Only one answer is CORRECT.) Perform on unexpected window operations , OnUnexpectedWindow event, Auto-Wait timeout, Stop on error, and Stop execution. Auto-Wait timeout, OnUnexpectedWindow event, Stop on error, Stop execution, and perform on unexpected window operations. Perform on unexpected window operations , Auto-Wait timeout, Stop execution, and OnUnexpectedWindow event. OnUnexpectedWindow event , perform on unexpected window operations , Auto-Wait timeout, and Stop execution. Question Title * 9. You are modifying a project to handle any error that is logged during a test to send an email to the QA supervisor. What should you do? (Only one answer is CORRECT.) Use Try and Catch operations to send an email via script. Use an OnLogEvent event to check for a logged error message then send an email via script. Use an OnLogError event to check for a logged error message then send an email via script. If the last operation result is an error, send an email via script. Question Title * 10. You need to keep track of how many tests have been successfully run in the project. Every time a test run is completed it will increment a project permanent variable by one.What should you do? (More than one answer choice may achieve the goal. Select the BEST answer.) Use an OnStartTest event handler to increment the variable. Use a Set Variable Value operation at the end of every test to increment the variable. Use an OnStopTest event handler to increment the variable. Use a Set Variable Value operation at the beginning of every test to increment the variable. Question Title * 11. You have a set of tests that must not have any errors in the log. For these tests you want to suppress all errors that occur and log warnings instead. At a later time you will need to restore the default behavior where errors are logged.What should you do? (More than one answer choice may achieve the goal. Select the BEST answer.) Replace all Log error messages with Log warning messages. Use an OnLogError event handler and use the following code:LogParams.Locked = true;Log.Warning(LogParams.MessageText, LogParams.AdditionalText, LogParams.Priority); Use an OnLogError event handler and use the following code:LogParams.Locked = false;Log.Warning(LogParams.MessageText, LogParams.AdditionalText, LogParams.Priority); Use an OnLogError event handler and use the following code:LogParams.Type = tmWarning; Question Title * 12. You have a test that brings up a Windows application. The test uses mouse clicks. If another application appears on top of the tested application, the test may fail. You need to log a custom error message when this occurs. What should you do? (Only one answer is CORRECT.) Messages get logged in order of OnStartTest event message, OnLogWarning event handler message, then log warning message. Messages get logged in order of OnLogWarning event handler message, OnStartTest event message, then log warning message. Messages get logged in order of log warning message, OnStartTest event message, then OnLogWarning event handler message. Messages get logged in order of OnStartTest event message, log warning message, then OnLogWarning event handler message. Question Title * 13. Two projects as part of a Project Suite can call functions into each other functions in scripts if you include a reference of their unit location in the other project. True or False? True False Question Title * 14. Adding Child items to the TestItems screen is only meaningful when the following features are added to the TestItems grid Count and Parameters Stop on Error and Stop on Exception Stop on Error and Count Stop on Exception and Count Question Title * 15. For better organization of your Scripts and Keyword tests, which of the following will be beneficial to your team and process Add Folders under Scripts and Keyword Test to combine related tests under the same category. Add new Project to the Project suite for each new feature in need of testing Implement as much as possible in one script or one Keyword test to limit the number of files needed for the project All of the Above Question Title * 16. You have a test that can log a warning message. You have an OnLogWarning event handler that adds a message to the log when a warning log occurs. You also have an OnStartTest that logs an event stating the test has started.What order are the items logged? (Only one answer is CORRECT.) Messages get logged in order of OnStartTest event message, OnLogWarning event handler message, then log warning message. Messages get logged in order of OnLogWarning event handler message, OnStartTest event message, then log warning message. Messages get logged in order of log warning message, OnStartTest event message, then OnLogWarning event handler message. Messages get logged in order of OnStartTest event message, log warning message, then OnLogWarning event handler message. Done