InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Silktest Vs. Visual Test? |
|
Answer» It really depends on what you are testing. For complex web sites (pages not static, multiple browser windows, JavaScript), I would say SILKTEST works MUCH better, In general, Visual Test is new to the web browser game. If it is a Win32 app that you are testing. VT is *much* faster than Silk and the CODE compiles down to a binary file that can easily be put on different test systems. This is a *big* plus for Visual Test. SilkTest will make the declaration file for you, so this saves allot of time. In VT, you have to make the declarations yourself but if the product isn’t huge, this isn’t a big deal. SilkTest also is great a capturing text on a page (either web or Win32 based). VT, last 1 CHECKED, lacked this function. It is a useful function for verification. SilkTest also has a nice verification function that it makes (a few keystokes and it’s done). Real easy to change some of the hardcoded data here with data from a text file or other place. Nice for doing report verification where the layout is the same, but the data is different. COST is another big issue. SilkTest is low in price, Silk quite high. So, again, it depends on your needs, what and how you will be testing it. It really depends on what you are testing. For complex web sites (pages not static, multiple browser windows, JavaScript), I would say SilkTest works much better, In general, Visual Test is new to the web browser game. If it is a Win32 app that you are testing. VT is *much* faster than Silk and the code compiles down to a binary file that can easily be put on different test systems. This is a *big* plus for Visual Test. SilkTest will make the declaration file for you, so this saves allot of time. In VT, you have to make the declarations yourself but if the product isn’t huge, this isn’t a big deal. SilkTest also is great a capturing text on a page (either web or Win32 based). VT, last 1 checked, lacked this function. It is a useful function for verification. SilkTest also has a nice verification function that it makes (a few keystokes and it’s done). Real easy to change some of the hardcoded data here with data from a text file or other place. Nice for doing report verification where the layout is the same, but the data is different. Cost is another big issue. SilkTest is low in price, Silk quite high. So, again, it depends on your needs, what and how you will be testing it. |
|
| 2. |
For Automating A Web Based Application Using Jsp? |
|
Answer» For automating a web based APPLICATION using JSP, there is a search textbox, a “Search BUTTON, a listbox, a “OK” button, and a “Cancel” button. The “OK’ button remains disabled by default. I NEED to enter a value in search textbox. CLICK on search button, select the resultant value in the listbox and then the “OK” button is enabled. Problem: When all this is automated. SILKTEST finds the OK button still disabled after selecting the resultant value, though the button is enabled Put one statement before clicking on save button BrowserPage.flushcache( ). For automating a web based application using JSP, there is a search textbox, a “Search button, a listbox, a “OK” button, and a “Cancel” button. The “OK’ button remains disabled by default. I need to enter a value in search textbox. click on search button, select the resultant value in the listbox and then the “OK” button is enabled. Problem: When all this is automated. Silktest finds the OK button still disabled after selecting the resultant value, though the button is enabled Put one statement before clicking on save button BrowserPage.flushcache( ). |
|
| 3. |
Runtime Error In Silk? |
|
Answer» It may be programming error, since DB next is USED to go the next DATA in the table, MAYBE it is getting to the LAST VALUE, and not getting any value there. It may be programming error, since DB next is used to go the next data in the table, maybe it is getting to the last value, and not getting any value there. |
|
| 4. |
Can We Integrate Silk Test With Quality Centre? |
|
Answer» SILK cannot be INTEGRATED with QUALITY CENTRE. Silk cannot be integrated with Quality centre. |
|
| 5. |
How Do I Declare The Tag, So That Silktest Recognizes Only The Beginning Of The Text? |
| Answer» | |
| 6. |
What If The Object Is Dynamically Changing. How Does Silktest Identifies The Object? |
| Answer» | |
| 7. |
How To Download Latest Silk Test Trial Version? |
|
Answer» You don’t as there are no free downloadable SilkTest TRIAL versions. You MUST contact Segue sales and they will SET you up with an account after you can demonstrate both need and desire to purchase, or at least evaluate. You then download SilkTest USING that account. You don’t as there are no free downloadable SilkTest trial versions. You must contact Segue sales and they will set you up with an account after you can demonstrate both need and desire to purchase, or at least evaluate. You then download SilkTest using that account. |
|
| 8. |
How To Access Script From Other Machine? |
|
Answer» Share the FOLDER containing the script very SIMPLE. You can run the script from your machine and target MAY be some other machine USING connect( ).But somebody else cannot access unless you share or TRY other options. Share the folder containing the script very simple. You can run the script from your machine and target may be some other machine using connect( ).But somebody else cannot access unless you share or try other options. |
|
| 9. |
What .opt File Is Used For? |
|
Answer» .opt file is used to SET the options Agent SetOption (OPTVINDOW_RETRY, 0.06) Agent.SetOption (OPT_KEYBOARD_DELAY, 0.3) For few options you can set in your script If you are going to set more number of options, it is better to set in an opt file and USE that opt file.
.opt file is used to set the options For few options you can set in your script If you are going to set more number of options, it is better to set in an opt file and use that opt file.
|
|
| 10. |
What Is About .vtp File In Silktest? |
|
Answer» .VTP files are PROJECT files HELP tells EXTENSIVELY on it. .vtp files are project files help tells extensively on it. |
|
| 11. |
Can Silktest Switch Browsers Automatically? |
|
Answer» You can, but there are a few steps that need to be done. You can, but there are a few steps that need to be done. |
|
| 12. |
How To Create Group And Sub Group Descriptions In A Testplan? Can Silktest Verify Locations Of Ads? |
|
Answer» YES you can, but the location may vary from 1 system to another from one resolution to another. You can use the .GetRect( ) method. Or you can use the VERIFY properties (HOLD ctrl-shift while recording testcases) and select the location for a property. Yes you can, but the location may vary from 1 system to another from one resolution to another. You can use the .GetRect( ) method. Or you can use the verify properties (hold ctrl-shift while recording testcases) and select the location for a property. |
|
| 13. |
How To Link An Error In The Result File To The Script File? |
Answer»
|
|
| 14. |
How Can We Get The Ip Address Of A Pc? |
|
Answer» You can use the following main[] INTEGER iRetum []STRING sCmdLine = “IPCONFIG” [] LIST OF STRING lsOutput [] iRetum = SYS_Execute (sCmdLine, lsOutput) [] listprint(lsOutput) output is []Windows IP CONFIGURATION [] Ethernet adapter Local Area CONNECTION: []Connection-specific DNS Suffix. abcd.xyz.net []TP Address : lx.2xx.2xx.79 [] SUBNET Mask., . . . . :255.255.0. []Default Gateway : 10.206. 1 .1 You need to do some trickery to parse and get the IP string.
You can use the following You need to do some trickery to parse and get the IP string.
|
|
| 15. |
How To Maintain Global Variable When Script Is Run Through Test Plans? |
Answer»
|
|
| 16. |
How To Maintain Recovery System? |
|
Answer» In your TestCaseExit( ) FUNCTION you can incorporate like if CONDITION == 1do this If condition ==2 do that In your TestCaseExit( ) function you can incorporate like |
|
| 17. |
Prob Regarding Close The Child Window ? |
| Answer» | |
| 19. |
What Is The Best Way To Create A New Test Script? |
|
Answer» In Automation: creating TEST scripts involves basically two step:
The first steps, is the outcome of analysis of what all data is required for all of your TESTCASES to be executed. These all should be COLLECTED and scripts to be WRITTEN so that TEST DATA is ready. In Automation: creating test scripts involves basically two step: The first steps, is the outcome of analysis of what all data is required for all of your testcases to be executed. These all should be collected and scripts to be written so that TEST DATA is ready. |
|
| 20. |
Is There Any Function For Word Count Of Web Page Is Available In The Silktest? |
|
Answer» You can USE Clipboard functions. Get All the contents by Ctrl+a & ctrl+C. Then PARSE the LIST of STRING. You can use Clipboard functions. Get All the contents by Ctrl+a & ctrl+C. Then parse the List of string. |
|
| 21. |
What Is Dbtester? |
|
Answer» DBTester is a testing tool that allows you to access a database server directly through ODBC DRIVERS. If your APPLICATION is a database driven application, you can perform a test through the application UI, and verify data changes in the database with DBTester without using the application UI. DBTester is a testing tool that allows you to access a database server directly through ODBC drivers. If your application is a database driven application, you can perform a test through the application UI, and verify data changes in the database with DBTester without using the application UI. |
|
| 22. |
How Can I Access A String From Oracle Db? |
|
Answer» DB_Connect (con_string). DB_Connect (con_string). |
|
| 23. |
Html Push Button Is Not Recognizing? |
|
Answer» ANSWER :
Agent.SetOption (OPT_VERIFY_EXPOSED, TRUE) |
|
| 24. |
How To Write The Single Silk Statement In Two Lines? |
|
Answer» Very EASILY FOUND in the online help under: Very easily found in the online help under: |
|
| 25. |
How To Get Contents Of A Web Page? (for Ex: Yahoo Homepage) |
|
Answer» Answer :
BrowserPage. SetActive ( ) |
|
| 26. |
What Is The Meaning Of The Automation Framework Especially In Silktest? |
|
Answer» Automation Framework is a discipline and should have proper design/architecture. You can understand and implement. Automation Framework should have some of following things.
Also framework design differs by tool, scripting LANGUAGES and type of AUT etc,. Now a days, people are using PERL, PYTHON, TCL/TK for CLI automation. This design will vary much from GUI specific tool automation’s design (QTP, WIN runner, Silktest,Robot and QARun etc). Automation Framework is a discipline and should have proper design/architecture. You can understand and implement. Automation Framework should have some of following things. Also framework design differs by tool, scripting languages and type of AUT etc,. Now a days, people are using PERL, PYTHON, TCL/TK for CLI automation. This design will vary much from GUI specific tool automation’s design (QTP, Win runner, Silktest,Robot and QARun etc). |
|
| 27. |
What I Have To Do To Use The Same Scripts For Web Based Testing? |
|
Answer» Same script can be used. Only URLs need to be UPDATED. MIGHT be some TAGS ALSO but you can manage them USING wild characters or multi-tag. Same script can be used. Only URLs need to be updated. Might be some tags also but you can manage them using wild characters or multi-tag. |
|
| 28. |
How Load Testing Can Be Done With Silk International? |
|
Answer» SILKTEST is not a load testing tool - it is a functional testing tool. You could do a crude load test by having SILK on multiple boxes and then running each one at the same time - but that is very crude. SilkTest is not a load testing tool - it is a functional testing tool. You could do a crude load test by having Silk on multiple boxes and then running each one at the same time - but that is very crude. |
|
| 29. |
Can Silktest Run On Mac? |
|
Answer» YES, you can Except that you will need MAC RUNTIME for JAVA (MRJ). Yes, you can Except that you will need Mac Runtime for Java (MRJ). |
|
| 30. |
How To Select A Group Of Test Cases In A Testplan To Run? |
|
Answer» Usually, a testplan contains a big number of TEST cases. For some reason, you don’t want to RUN all test cases in the testplan. You want to select a group of test cases and run them:
Usually, a testplan contains a big number of test cases. For some reason, you don’t want to run all test cases in the testplan. You want to select a group of test cases and run them: |
|
| 31. |
How To Run All Test Cases In A Testplan? |
Answer»
|
|
| 32. |
How To Run A Test Case From A Testplan File? |
|
Answer» If a testcase is linked to a testplan, you can RUN it from the testplan:
If a testcase is linked to a testplan, you can run it from the testplan: |
|
| 33. |
How To Run A Test Case From A Test Script File? |
|
Answer» A TEST script file can store multiple test cases. You can run a TESTCASE from a test script file:
A test script file can store multiple test cases. You can run a testcase from a test script file: |
|
| 34. |
How To Define An Object Verification In A Test Case? |
|
Answer» While recording a test case, you can define verification points to verify UI objects:
While recording a test case, you can define verification points to verify UI objects: |
|
| 35. |
How To Include A Test Case Into A Testplan? |
Answer»
|
|
| 36. |
What Is The Standard Flow Of Execution Of A Test Case? |
| Answer» | |
| 37. |
What Are The Important Aspects Of A Test Case? |
Answer»
|
|
| 38. |
How To Test Your Defaultbasestate? |
Answer»
|
|
| 39. |
What Is Defaultbasestate? |
|
Answer» The DefaultBaseState is a starting point of TEST project from which the Recovery SYSTEM can AUTOMATICALLY restart your test cases when test cases FAIL to continue. The DefaultBaseState is a starting point of test project from which the Recovery System can automatically restart your test cases when test cases fail to continue. |
|
| 40. |
How To Specify A Browser Extension To A Web Application? |
Answer»
|
|
| 41. |
How To Add Objects Of Other Pages To A Test Frame? |
|
Answer» If your Web application has PAGES other than the home page, you should also record their page objects into the test frame:
If your Web application has pages other than the home page, you should also record their page objects into the test frame: |
|
| 42. |
What Is Multi-tagging? |
|
Answer» Multi-tagging is a technique used by the DOM browser extension to IDENTIFY a Web page UI object. WHENEVER possible, DOM extension inserts more than one TAG into the object identifier in following FORMAT:
Multi-tagging is a technique used by the DOM browser extension to identify a Web page UI object. Whenever possible, DOM extension inserts more than one tag into the object identifier in following format: |
|
| 43. |
What Is The Syntax Of Ui Object Identifier Used By Dom Extension? |
|
Answer» The DOM browser extension uses the FOLLOWING syntax for WEB UI objects:
The DOM browser extension uses the following syntax for Web UI objects: |
|
| 44. |
What Is Stored In A Test Frame? |
|
Answer» A test frame is a text file, which records the following types of information for a Web application:
A test frame is a text file, which records the following types of information for a Web application: |
|
| 45. |
How To Create A Test Frame? |
Answer»
|
|
| 46. |
What Is A Test Frame? |
|
Answer» A test frame is a file that contains information about the application you are TESTING. Information stored in a test frame will be used as references when SilkTest RECORDS and EXECUTES testcases. A test frame is stored in an include file with file EXTENSION .inc. A test frame is a file that contains information about the application you are testing. Information stored in a test frame will be used as references when SilkTest records and executes testcases. A test frame is stored in an include file with file extension .inc. |
|
| 47. |
How To Assign Attribute Values To Test Cases? |
Answer»
|
|
| 48. |
Where Are The Testplan Attributes Stored? |
|
Answer» TESTPLAN attributes are stored in the testplan initialization file, testplan.ini, in SilkTest installation DIRECTORY. Testplan attributes are stored in the testplan initialization file, testplan.ini, in SilkTest installation directory. |
|
| 49. |
How To Define Values For A Testplan Attribute? |
|
Answer» You must define values for a testplan before using it:
You must define values for a testplan before using it: |
|
| 50. |
What Are The Default Testplan Attributes? |
|
Answer» SilkTest offers you 3 PREDEFINED default ATTRIBUTES:
SilkTest offers you 3 predefined default attributes: |
|