The Quality Assurance Engineer tries to created fancy 4test script for newest version of web based application, but for some weird reason SilkTest 2006 is not recognizing links as HtmlLink objects.
The cause of this behavior is that someone have configured browser not to underline links (by default IE displays all links as underlined links). SilkTest 2006 requires that links be underlined. Reconfigure the browser on test machine to display links underlined.
Showing posts with label browser. Show all posts
Showing posts with label browser. Show all posts
SilkTest Question 53: How to fix unable to start Internet Explorer error?
The following error "Unable to start Internet Explorer 7" may suddenly appear while QA Engineer trying to record or run a test case. Usually this issue happens with freshly installed instance of Silk Test because the extensions enabled in the Extensions Enabler and Options/Extensions do not match the default browser.
QA Engineer need to carefully examine the settings for default browser on test computers and make them consistent with the settings for the host machine in Options/Extensions and for the target machine in the Extension Enabler.
QA Engineer need to carefully examine the settings for default browser on test computers and make them consistent with the settings for the host machine in Options/Extensions and for the target machine in the Extension Enabler.
Labels:
browser
SilkTest Question 43: How to count the number of open browsers?
Let’s assume that interviewer for Software Quality Assurance Engineer position wants you to implement the function for counting number of browsers which he recently opened on his/her computer. No one knows the real need for such function, because average tester prefers to work just with one browser and as a part of test case preparation would close all remaining Internet Explorers or Firefoxes. The first question to ask is what type of browser do you want to check and after meaningful answer you can create something like following function written in 4test language which returns the required number for Internet Explorer.
integer GetBrowserCount ()
integer browsers = 1
while (MainWin ("$explorer6_DOM[{browsers}]").Exists ())
browsers ++
return (browsers -1)
integer GetBrowserCount ()
integer browsers = 1
while (MainWin ("$explorer6_DOM[{browsers}]").Exists ())
browsers ++
return (browsers -1)
Labels:
browser
SilkTest Question 36: How to open and close browser?
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()
The 4test language examples:
Browser.Invoke()
Browser.Close()
Browser.CloseOthers()
Broswer.CloseOtherTabs()
Labels:
browser
SilkTest Question 27: How to set correct browser extension for web based application?
The following steps describes setting browser extension for testing web based applications.
- Start SilkTest application.
- Start Internet Explorer browser
- Enter the URL of the Web application into Internet Explorer address bar and leave the Internet Explorer window with the web based application. Do not minimize browser window!
- Switch back to SilkTest window.
- Select Workflow->Basic in SilkTest menu
- Press Enable Extensions on the Workflow bar.
- The Enable Extensions dialog will show up. In most cases the web based application running in the browser window will be listed in the dialog box.
- Select your web based application and click select.
- The Extension Settings modal dialog window will show up. Select radio button DOM and click OK to enable the DOM browser extension.
- Restart your web based application as asked in Text Extension Setting window and press Test button.
- The SilkTest window with text "Configuration of your Internet Explorer 6 application is complete" should appear in case of successful settings.
SilkTest Question 25: How to fix the explorer6_Dom[1] error?
We have a few test scripts written by outsourced QA team in 4test language for regression testing of our web based application. During test script execution the error message ***Error: Window '[MainWin]$explorer6_Dom[1]' was not found appears. The problem is that the error message above is not shown every time when I run script, sometimes the code runs just fine, but it may happen that if I execute testing again the DOM error message appears. Not a single engineer in our QA team is able to find answer in SilkTest documentation. We asked for help from outsourced testing team, but they do not have any clue at all.
One of the solutions to fix *** Error: Window '[MainWin]$explorer6_DOM[1]' was not found is to verify that "Enable Third Party Browser Extensions" option of Internet Explorer is checked. You can find it under Tools/Internet Options/Advanced
Do not forget to reboot your computer after enabling this options.
One of the solutions to fix *** Error: Window '[MainWin]$explorer6_DOM[1]' was not found is to verify that "Enable Third Party Browser Extensions" option of Internet Explorer is checked. You can find it under Tools/Internet Options/Advanced
Do not forget to reboot your computer after enabling this options.
SilkTest Question 23: How to set up proxy setting with 4test code?
In preparation for QA interview I try to develop script for setting up proxy server for Internet Explorer 6.0. So far I found two windows registry keys where proxy data are located on my Microsoft Windows XP testing machine.
I may turn proxy server on or off with 1 or 0 modifying
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable
I may define proxy server ip and port modifying
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer
What to do next?
The code below contain Silk Test code for turning on specified proxy server and as your home work for QA interview you can easily modify script for turning off proxy server. By the way before you change the registry, make sure to back it up and make sure that you or someone else in your company know how to restore the registry if a problem occurs or play with this script only on test environment.
[ ] // Turns on specified proxy
[ ] // sProxyName -> ip:port
[+] configureProxyServer(STRING sProxyName)
[ ]
[ ] integer iKey = HKEY_CURRENT_USER
[ ] string sPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\"
[ ] string sProxyServer = "ProxyServer"
[ ] string sProxyEnable = "ProxyEnable"
[ ] string sProxyOn = "REG_DWORD: 0x00000001"
[-] do
[ ] SYS_GetRegistryValue(iKey, sPath, sProxyServer, TRUE)
[ ] SYS_SetRegistryValue(iKey, sPath, sProxyServer, sProxyName)
[-] except
[ ] Reg_CreateValue(iKey, sPath, sProxyServer, serverName)
[ ]
[-] do
[ ] SYS_GetRegistryValue(iKey, sPath, sProxyServer, TRUE)
[ ] SYS_SetRegistryValue(iKey, sPath, sProxyEnable, sProxyOn)
[-] except
[ ] Reg_CreateValue(iKey, sPath, sProxyEnable, sProxyOn)
[ ]
[ ]
I may turn proxy server on or off with 1 or 0 modifying
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable
I may define proxy server ip and port modifying
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer
What to do next?
The code below contain Silk Test code for turning on specified proxy server and as your home work for QA interview you can easily modify script for turning off proxy server. By the way before you change the registry, make sure to back it up and make sure that you or someone else in your company know how to restore the registry if a problem occurs or play with this script only on test environment.
[ ] // Turns on specified proxy
[ ] // sProxyName -> ip:port
[+] configureProxyServer(STRING sProxyName)
[ ]
[ ] integer iKey = HKEY_CURRENT_USER
[ ] string sPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\"
[ ] string sProxyServer = "ProxyServer"
[ ] string sProxyEnable = "ProxyEnable"
[ ] string sProxyOn = "REG_DWORD: 0x00000001"
[-] do
[ ] SYS_GetRegistryValue(iKey, sPath, sProxyServer, TRUE)
[ ] SYS_SetRegistryValue(iKey, sPath, sProxyServer, sProxyName)
[-] except
[ ] Reg_CreateValue(iKey, sPath, sProxyServer, serverName)
[ ]
[-] do
[ ] SYS_GetRegistryValue(iKey, sPath, sProxyServer, TRUE)
[ ] SYS_SetRegistryValue(iKey, sPath, sProxyEnable, sProxyOn)
[-] except
[ ] Reg_CreateValue(iKey, sPath, sProxyEnable, sProxyOn)
[ ]
[ ]
Labels:
browser
Silktest Question 16: How to delete cookies files using the 4test language?
I created a 4test script to test our web based application and would like to know how to delete a specific cookie file during script execution?
The following 4test function can be used for deleting specific cookie file:
[-] RemoveCookies (String sPath, String sFile)
[ ] //*******************
[ ] //* The function for removing a stored web cookie file.
[ ] //* sPath The complete path to the directory where the cookie is stored
[ ] //* Example "C:\Documents and Settings\Administrator\Cookies\"
[ ] //* sFile unique part of the cookie file name
[ ] //* for example "*winrunner*"
[ ] //*******************
[ ] LIST OF FILEINFO lfInfo
[ ] LIST OF STRING lsFileName
[ ] INTEGER iCount
[ ] STRING sLFile
[ ] Boolean bFound
[ ]
[ ] lfInfo = SYS_GetDirContents (sPath) //obtain directory content
[-] for iCount = 1 to ListCount(lfInfo) //for every FILEINFO in lsInfo
[ ] ListAppend(lsFileName, lfInfo[iCount].sName) //append the name of the files
[ ]
[-] for each sLFile in lsFileName //for each file name in lsFileName
[ ] bFound = MatchStr (sFile, sLFile) //check if the sFile string is in the File Names
[-] if bFound == TRUE //if the sFile string is in file name
[ ] SYS_RemoveFile (sPath + sLFile) //delete the file from the sPath directory
[ ]
You can easily modify this 4test function to remove all files in the particular directory or within a loop delete a list of files.
The following 4test function can be used for deleting specific cookie file:
[-] RemoveCookies (String sPath, String sFile)
[ ] //*******************
[ ] //* The function for removing a stored web cookie file.
[ ] //* sPath The complete path to the directory where the cookie is stored
[ ] //* Example "C:\Documents and Settings\Administrator\Cookies\"
[ ] //* sFile unique part of the cookie file name
[ ] //* for example "*winrunner*"
[ ] //*******************
[ ] LIST OF FILEINFO lfInfo
[ ] LIST OF STRING lsFileName
[ ] INTEGER iCount
[ ] STRING sLFile
[ ] Boolean bFound
[ ]
[ ] lfInfo = SYS_GetDirContents (sPath) //obtain directory content
[-] for iCount = 1 to ListCount(lfInfo) //for every FILEINFO in lsInfo
[ ] ListAppend(lsFileName, lfInfo[iCount].sName) //append the name of the files
[ ]
[-] for each sLFile in lsFileName //for each file name in lsFileName
[ ] bFound = MatchStr (sFile, sLFile) //check if the sFile string is in the File Names
[-] if bFound == TRUE //if the sFile string is in file name
[ ] SYS_RemoveFile (sPath + sLFile) //delete the file from the sPath directory
[ ]
You can easily modify this 4test function to remove all files in the particular directory or within a loop delete a list of files.
Silktest Question 2 : SilkTest recognises Internet Explorer as a Client/Server Application
After enabling the extension by tools/extensions for browser, SilkTest shows browser as a client-server application and the following message appears
There is only one solution for this problem with SilkTest testing tool. You have to recreate your windows user profile on the machine: Login as administrator, go to the User Profiles tool from the Advanced tab of the System Properties dialog box. Once you do, select your user profile from the list and click the Delete button. Log on again as you and this will create a new user profile.
P.S. If you want to save information from the profile, save that information individually i.e. if the you want to save your favorites copy the favorites to an other location and after deleting the profile copy the favorites back.
SilkTest detected a Client/Server application.
The required Extension has been enabled.
There is only one solution for this problem with SilkTest testing tool. You have to recreate your windows user profile on the machine: Login as administrator, go to the User Profiles tool from the Advanced tab of the System Properties dialog box. Once you do, select your user profile from the list and click the Delete button. Log on again as you and this will create a new user profile.
P.S. If you want to save information from the profile, save that information individually i.e. if the you want to save your favorites copy the favorites to an other location and after deleting the profile copy the favorites back.
Labels:
browser
Silktest Question 1 : SilkTest does not set DefaultBaseState for Internet Explorer
The error message from the results file shows:
First check to ensure that all of the extensions have been enabled properly within SilkTest. If this is fine, then ensure that there are not two versions of SilkTest installed on the machine.
If there are not two versions of SilkTest on the machine then there is the possibility that the machine was not restarted when uninstalling the older version of SilkTest prior to installing the new version.
In this case perform the following:
Uninstall SilkTest,
Restart the machine,
Reinstall SilkTest,
Restart the machine.
[ ] *** DefaultBaseState is invoking Browser
[ ] *** Error: Unable to start Internet Explorer 6 DOM
[ ] Occurred in AppError
[ ] Called from Explorer.Invoke at extend\explorer.inc(470)
[ ] Called from Browser.Invoke at browser.inc(361)
[ ] Called from DefaultBaseState at defaults.inc(126)
[ ] Called from main at $ScriptMain(2)
First check to ensure that all of the extensions have been enabled properly within SilkTest. If this is fine, then ensure that there are not two versions of SilkTest installed on the machine.
If there are not two versions of SilkTest on the machine then there is the possibility that the machine was not restarted when uninstalling the older version of SilkTest prior to installing the new version.
In this case perform the following:
Uninstall SilkTest,
Restart the machine,
Reinstall SilkTest,
Restart the machine.
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