There is Invoke method declared for the Browser window. The following 4test code invokes the currently defined browser - Browser.Invoke(). The Close method will close current browser windows – Browser.Close(), but in most cases this method can be used in combination with CloseOthers. The CloseOthers closes all instances of the current browser except the top most one. One more method would be useful for testing FireFox with SilkTest. The CloseOtherTabs closes all instances of the current browser tabs expect the left most one.
The 4test language examples:
Browser.Invoke()
Browser.Close()
Browser.CloseOthers()
Broswer.CloseOtherTabs()
SilkTest Question 35: Did you have any issues with SilkTest 8.0?
I guess this one is the nice question for someone who has the latest version of Borland SilkTest 8.0 in his/her resume. One of the answers may be the following:
While testing a huge webpage which has almost 1000 objects we figured out that automation tool is not able to see a lot of objects at the bottom of the webpage. The developers can not brake down the page into smaller web pages due to customer requirements. We tried to recognize objects with previous version of SilkTest 7.6 and with WinRunner 8.0 and both automated tools do not have such problem on this page. Our QA manager contacted Borland and currently they are trying to fix this issue in the future version. In the mean time we are trying to find a workaround, but not able to get any satisfactory solution.
While testing a huge webpage which has almost 1000 objects we figured out that automation tool is not able to see a lot of objects at the bottom of the webpage. The developers can not brake down the page into smaller web pages due to customer requirements. We tried to recognize objects with previous version of SilkTest 7.6 and with WinRunner 8.0 and both automated tools do not have such problem on this page. Our QA manager contacted Borland and currently they are trying to fix this issue in the future version. In the mean time we are trying to find a workaround, but not able to get any satisfactory solution.
Labels:
SilkTest 8.0
SilkTest Question 34: How can QA engineer execute SilkTest from the command line
The full development version of SilkTest uses – partner.exe file, therefore the start command would be %SEGUE_HOME%\partner.exe -r winrunner.t
The runtime version of SilkTest uses - runtime.exe file, hence the command should be: %SEGUE_HOME%\runtime.exe -r winrunner.t
There are many options for execution automation tool from command line and one of the most useful is "-q" which quiets application after the script, suite, or test plan completes.
Silktest tips:
The experience with running runtime version on Microsoft Windows 2003 server has shown that runtime version is not able to execute 4test script for browser in case the 'Internet Explorer Enhanced Security Configuration' is enabled on computer. To disable one need to use the following instruction:
Press start, select Control Panel, and select Add/Remove Programs
Press on Add/Remove Windows Components image
As soon it is done find and uncheck the check mark next to Internet Explorer Enhanced Security Configuration. (click detail in case you would like to only disable it for administrators or only for users)
Press Next, and try to run your 4test script or test plan again.
The runtime version of SilkTest uses - runtime.exe file, hence the command should be: %SEGUE_HOME%\runtime.exe -r winrunner.t
There are many options for execution automation tool from command line and one of the most useful is "-q" which quiets application after the script, suite, or test plan completes.
Silktest tips:
The experience with running runtime version on Microsoft Windows 2003 server has shown that runtime version is not able to execute 4test script for browser in case the 'Internet Explorer Enhanced Security Configuration' is enabled on computer. To disable one need to use the following instruction:
Press start, select Control Panel, and select Add/Remove Programs
Press on Add/Remove Windows Components image
As soon it is done find and uncheck the check mark next to Internet Explorer Enhanced Security Configuration. (click detail in case you would like to only disable it for administrators or only for users)
Press Next, and try to run your 4test script or test plan again.
SilkTest Question 33: How to stop a running test case before it completes?
From my experience as interviewer around 25% applicants for QA Engineers position don’t know answer on this interview question although everyone of them has at least 2 years of experience with SilkTest automated tool.
To stop running a test case before it completes:
To stop running a test case before it completes:
- if your application under test is running on your host computer, press SHIFT+SHIFT
- if your application under test in on target computer other than host computer, select Run/Abort from SilkTest menu
SilkTest Question 32: Can you explain the standard flow of test case execution?
- The test case drives the application under state from the initial stage to the state QA Engineer wants to test.
- The test case verifies that the actual state matches the expected state. The QA department might use term baseline or basestate to refer to expected state.
- The test case verifies that the actual result of execution matches expected result.
- The test case declares that the test passes or failed
- The test case cleans up application in preparation on next test case.
SilkTest Question 31 : How to update an Excel spreadsheet using SilkTest?
First of all the QA engineer should verify that ODBC data source, which SilkTest is going to use, is not set to read-only otherwise the Excel worksheet cannot be updated
The Microsoft's Excel OBDC driver does not support INSERT keyword, so QA Engineer will not be able to use this keyword in the SQL statement. Instead of INSERT keyword 4test code developer have to use to use the UPDATE keyword.
The following 4test example will update data in Microsoft Excel.
[ ]
[ ] HANDLE hDBC = DB_Connect("DSN=Documentation")
[ ]
[ ] HANDLE hSQL
[ ]
[ ] hSQLq = DB_ExecuteSQL(hDB, "UPDATE 'Sheet2$' SET 'Sheet2$'.Language='4Test' WHERE 'Sheet2$'.Name='Winrunner'")
[ ]
[ ] DB_Disconnect(hDBC)
Also take a look at SilkTest Interview Question 18: How to read data from Microsoft Excel worksheet?
The Microsoft's Excel OBDC driver does not support INSERT keyword, so QA Engineer will not be able to use this keyword in the SQL statement. Instead of INSERT keyword 4test code developer have to use to use the UPDATE keyword.
The following 4test example will update data in Microsoft Excel.
[ ]
[ ] HANDLE hDBC = DB_Connect("DSN=Documentation")
[ ]
[ ] HANDLE hSQL
[ ]
[ ] hSQLq = DB_ExecuteSQL(hDB, "UPDATE 'Sheet2$' SET 'Sheet2$'.Language='4Test' WHERE 'Sheet2$'.Name='Winrunner'")
[ ]
[ ] DB_Disconnect(hDBC)
Also take a look at SilkTest Interview Question 18: How to read data from Microsoft Excel worksheet?
Subscribe to:
Posts (Atom)
SilkTest interview questions for QA Testers
- Silktest Interview Question 78 - How many programming languages can QA Engineer use in Micro Focus SilkTest?
- Silktest Interview Question 77 - How to download latest SilkTest 2009 trial version?
- Silktest Interview Question 76 - Why do we need to use SilkTest 2009 ?
- Silktest Interview Question 75: Can Silktest 2009 do load testing?
- Silktest Interview Question 74: What Silktest 2009 editions are available?
- SilkTest question 73: SilkTest vs HP QTP comparasion?
- SilkTest question 72: How to use SilkTest in agile testing?
- SilkTest question 71: Does SilkTest support Chrome browser?
- SilkTest question 70: How to compare PDF document with SilkTest 2008?
- SilkTest question 69: SilkTest vs Winrunner comparison?
- SilkTest question 68: Online Advanced Training with SilkTest?
- SilkTest Question 67: How to start/stop/pause two word names Windows service with SilkTest?
- SilkTest Question 66: SilkTest vs Selenium
- SilkTest Question 65: How to start/stop/pause Windows service with SilkTest?
- Interview Question 64: How to hide username and password information?
- SilkTest Question 63: Does Silk Test have any future?
- Interview Question 62: When can I download Flex extension for SilkTest?
- SilkTest Question 61: How can I execute the same test case multiple times?
- SilkTest Question 60: Where can I find SilkTest 2010 tutorials?
- SilkTest Question 59: What is hidecalls keyword for?
- SilkTest Question 58: SilkTest training from Borland
- SilkTest Question 57: BCSTE certification and job market?
- SilkTest Question 56: Will obtaining SCSTE certification improve chances of getting a QA job?
- SilkTest Question 55: How does conditional operator work?
- SilkTest Question 54: Links not being recognized
- SilkTest Question 53: How to fix unable to start Internet Explorer error?
- SilkTest Question 52: How to fix DLL cannot be loaded error?
- SilkTest Question 51: How to conduct testing with SilkTest via Microsoft Remote Desktop?
- SilkTest Question 49: What does this code print?
- SilkTest Question 48: Do you recommend installing WinRunner and Silktest on the same machine?
- SilkTest Question 46: How to get machine hostname?
- SilkTest Question 45: How to fix no license for silktest_gui error?
- SilkTest Question 44: How to email test results using Microsoft Outlook?
- SilkTest Question 43: How to count the number of open browsers?
- SilkTest Question 42: How to get substring of the string variable?
- SilkTest Question 41: What is the latest version of Silktest?
- SilkTest Question 40: Did you have any problem with FireFox and SilkTest 8.0?
- SilkTest Question 39: How to use verify statement?
- SilkTest Question 38: How to read value from read only text field?
- SilkTest Question 37: How to fix "Mouse Coordinate (x,y) is off the screen" error?
- SilkTest Question 36: How to open and close browser?
- SilkTest Question 35: Did you have any issues with SilkTest 8.0?
- SilkTest Question 34: How can QA engineer execute SilkTest from the command line
- SilkTest Question 33: How to stop a running test case before it completes?
- SilkTest Question 32: Can you explain the standard flow of test case execution
- SilkTest Question 31: How to update an Excel spreadsheet using SilkTest?
- SilkTest Question 30: What are the important aspects of a test case?
- SilkTest Question 29: How to hide password in the 4test script file?
- SilkTest Question 28: How to start installation testing?
- SilkTest Question 27: How to set correct browser extension for web based application?
- SilkTest Question 26: How to repair *** Error: Application not ready error?
- SilkTest Question 25: How to fix the explorer6_Dom[1] error?
- SilkTest Question 24: What is the limitation of Silk Test automation tool?
- SilkTest Question 23: How to set up proxy setting with 4test code?
- SilkTest Question 22: Explain advantages of DOM extension over VO extension?
- SilkTest Question 21: How to fix bitmap failed to stabilize error?
- SilkTest Question 20: How to use regular expression in Silk Test?
- SilkTest Question 19: How to execute the string as the function?
- SilkTest Question 18: How to read data from Micros...
- Silktest Question 17: How to close all windows on desktop?
- Silktest Question 16: How to delete cookies files using the 4test language?
- Silktest Question 15: The SilkMeter license server is down. What can I do?
- Silktest Question 14: How to test dynamic text in web based application?
- Silktest Question 13: What is SilkTest Host?
- Silktest Question 12: What are the database functions offered by DBTester?
- Silktest Question 11: What is the Borland Testing Methodology?
- Silktest Question 10: How to append to List Of List Of String?
- Silktest Question 9: How to capture the contents of Microsoft Word document invoked in Internet Explorer browser.
- Silktest Question 8: If I get an exception during executing DB_Connect, how do I know exactly what kind of exception it is?
- Silktest Question 7: Matching '?' character in a string
- Silktest Question 6: Silktest or Winrunner?
- Silktest Question 5: Why did Borland buy Segue?
- Silktest Question 4: Where can I buy any good basic or advance books on SilkTest?
- Silktest Question 3: Is SilkTest Extension Kit part of SilkTest?
- Silktest Question 2: SilkTest recognises Internet Explorer as a Client/Server Application
- Silktest Question 1: SilkTest does not set DefaultBaseState for Internet Explorer