OpenSTA script error - stress-testing

I am trying to learn openSTA tool.
I recorded the script and then when I clicked on replay i got following error,
Compiling... TESTSCRIPT.HTP
"User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04
*************************************************************************************************************************************
TESTSCRIPT.HTP(27) : error (badrecsiz), Source Line is Too Long
CONSTANT S_cookie_3_0 = "ASP.NET_SessionId=30hreg5512fghcebgeqzn4na"
*********************************************************************
TESTSCRIPT.HTP(28) : error (exttxt), Unexpected Text Encountered Following Statement
"Cookie: "+S_cookie_3_0}
************
TESTSCRIPT.HTP(79) : error (undefvar), Undefined Variable
scl: info (endnoobj), TESTSCRIPT.HTP Completed with 3 Diagnostics - Object Deleted

Thanks to this post. The String in the script was too long just truncated some characters in it.

Related

Selenium WebDriverException: unknown error: call function result missing 'value' while calling sendkeys method

When trying to call Sendkeys method in selenium webdriver it is displaying below error:
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'
(Session info: chrome=65.0.3325.146)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7600 x86_64) (WARNING: The server did not provide any stacktrace information)
Selenium Jarversion: 3.10.0
The error says it all :
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'
(Session info: chrome=65.0.3325.146)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7600 x86_64)
Your main issue is the version compatibility between the binaries you are using as follows :
You are using chromedriver=2.27
Release Notes of chromedriver=2.27 clearly mentions the following :
Supports Chrome v54-56
You are using chrome=65.0
Release Notes of ChromeDriver v2.36 clearly mentions the following :
Supports Chrome v65-66
Your Selenium Client version is 3.10.0.
Your JDK version is unknown to us.
So there is a clear mismatch between the ChromeDriver version (v2.27) and the Chrome Browser version (v65.0)
Solution
Upgrade ChromeDriver to ChromeDriver v2.36 level.
Keep Chrome version at Chrome v65.x levels. (as per ChromeDriver v2.36 release notes)
Clean your Project Workspace and Rebuild your project with required dependencies only.
Use CCleaner tool to wipe off all the OS chores before and after the execution of your test Suite.
If your base Chrome version is too old, then uninstall it through Revo Uninstaller and install a recent GA and released version of Chrome.
Execute your #Test.
An older version of the ChromeDriver is being spun off when the test is being run; to remedy:
Ensure that you've gotten your browser up to date (v65-67) and get the latest version of the ChromeDriver executable(v2.38)
Extract the ChromeDriver and explicitly set the System property when initializing the ChromeDriver object...
Ex:
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver.exe");
WebDriver driver = new ChromeDriver();
I had encountered the same issue. The issue got resolved by updating the chromedriverexe. please check the compatibility of your chrome browser with chrome driver here To download chromedriver

My robot framework test does not work with chrome

I have written some test suites with robot framework using RIDE. As browser I have used Firefox and all test passed without any problem. But I have now to use Chrome as reference browser. But chrome isn't working. So I have done a very simple test case:
Open Browser http://google.com ${BROWSER}
If I enter "ff" as my ${BROWSER} variable I get a Firefox window with the google website displayed within it.
When I change the ${BROWSER} variable to chrome, I get a browser window which is black.
I get the following error in the log file:
WebDriverException: Message: session not created exception
from timeout: Timed out receiving message from renderer: 600.000
(Session info: chrome=55.0.2883.87)
(Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7601 SP1 x86_64)
My configuration is:
Robot Framework 3.0
RIDE 1.5.2.1
Selenium2Library 1.7.4
Python 2.7.12
wx 2.8.12.1
Google Chrome 55
Chromedriver 2.27

Liferay Vaadin Portlet - JSON Undefined Error in IE

I have a Liferay Vaadin Portlet that is working with no issues (or errors) in both Firefox and Chrome. However,
when I use Internet Explorer (Version 11) I get the following error:
Webpage error details
3
4User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
5Timestamp: Thu, 6 Nov 2014 17:29:44 UTC
6
7
8Message: 'JSON' is undefined
9Line: 147
10Char: 8
11Code: 0
12URI: http://server.com/receipt-lookup-portlet/VAADIN/vaadinBootstrap.js
I only get this error when pulling up the page from the server, when I pull it up from my environment I get no errors (using the same browser).
Thanks!
vaadin.version 7.3.4
liferay.version 6.0.6
I believe it may be something do with compatibility mode. Try adding this into your theme:
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
It's possible you've already got something similar, but have used IE conditional comments to condition it's inclusion. IE11 doesn't do IE conditional comments any more so you will need to have the meta tag included for all browsers.

Connection failed to hsm luna SA 'C_Initialize' returns 0x30

I tried to connect to the luna SA, with the SDK installed and the luna and luna API.
I have access to the moon, and I could open session in putty console.
I used the login that comes in the example, but sends me an error.
code:
public LunaTokenManager tokenManager = null;
tokenManager = LunaTokenManager.getInstance();
try {
tokenManager.Login(password);
}
catch (ProviderException e) {
e.getMessage();
}
to debbug stop in
LunaTokenManager.getInstance();
error:
Exception in thread "main" com.chrysalisits.crypto.LunaCryptokiException: function 'C_Initialize' returns 0x30
at com.chrysalisits.crypto.LunaCryptokiException.ThrowNew(LunaCryptokiException.java:57)
at com.chrysalisits.crypto.LunaAPI.Initialize(Native Method)
at com.chrysalisits.crypto.LunaTokenManager.(LunaTokenManager.java:107)
at com.chrysalisits.crypto.LunaTokenManager.getInstance(LunaTokenManager.java:62)
the documentation says it is not Java error, but I failed to resolve
http://leifj.nordu.net/luna-docs/007-011136-002_lunasa_5-1_webhelp_rev-a/content/sdk/jsp_errors.htm
C_Initialize mentioned in the exception message is a function from PKCS#11 interface - lower level ANSI C API - which is probably used internally by the Java API.
C_Initialize returned 0x30 which is defined as CKR_DEVICE_ERROR which is described as "Some problem has occurred with the token and/or slot". Maybe you did not setup the connection to Luna SA properly?
I remember some certificates needed to be deployed on the client machine but I can't recall the details.

Google drive Dredit sample app for dotnet

I was following exact the same steps as described in this article to test the dotnet app.
https://developers.google.com/drive/examples/dotnet
My env is visual studio 2010 and IIS 7
Everything was fine. The app deployment was successful and I could see the login screen and the "allow access" dialog. However once I granted access, I saw the following error.
Can anyone help?
Thanks,
Qiang
Server Error in '/' Application.
Failed to find or load the registered .Net Framework Data Provider.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider.
Source Error:
Line 82: {
Line 83: StoredCredentialsDBContext db = new StoredCredentialsDBContext();
Line 84: StoredCredentials sc = db.StoredCredentialSet.FirstOrDefault(x => x.UserId == userId);
Line 85: if (sc != null)
Line 86: {
Source File: C:\Qiang\DrEdit\Models\Utils.cs Line: 84
You have to install Microsoft SQL Server Compact 4.0, which is used by the Entity Framework to map model classes into database entities.