Difference between defaultselenium.shutdownseleniumserver and seleniumserver.stop - selenium

1) What is the difference between defaultSelenium.shutDownSeleniumServer() and seleniumServer.stop() ?
I observe that when I just use
defaultSelenium.stop();
seleniumServer.stop();
the browser closes but the server does not shut down. If that is the case, what is the use of seleniumServer.stop()?
2) Is this the right sequence of commands? If not, what is and why?
defaultSelenium.stop();
defaultSelenium.shutDownSeleniumServer();
seleniumServer.stop();

Answer to this question can be found on this thread.

Related

Matrox DSXLE5 mvConnectorConfig - how to check current -KeyMapping value

I'm looking if there is a way to call the board (DSXLE5) and request info of the current KeyMapping value?
It is the first time I deal with DSX5 family, I've already identified that the firmware change process is different, as before, to change a DSXLE4 8 port card to be 2in + 6out we used
$mvConnectorConfig -2in6out -sn=XXXXX
and now I see that DSXLE5 needs to point the firmware (*.pin) with the load parameter.
$mvConnectorConfig load -f=xmio5_x2_00i12o.pin -sn=xxxxx
I see from the help that we can use -KeyMapping to change the boards, but how does it work and can we call the board to show which mapping is currently using?
I'm new here, so I'm sorry if it isn't 100% straight question.
Best Regards,
Rafael Girotto

Redis.blPop: How check how many process wait 'key'?

I am use PhpRedis
$redis->blPop('key', 10);
How check how many process wait 'key'?
$redis->blPopCountWait('key'); => 30
Thank you!
There is no way to do that in Redis.
The closest you can get is running CLIENT LIST and filter the reply by 'cmd=blpop', but this will not tell you the actual key(s) each connection is blocking on.

About SSL session resumption: Two piece of material is inconsistent

Material A:
http://h71000.www7.hp.com/doc/83final/ba554_90007/ch04s03.html
Material B:
http://www.linuxjournal.com/article/5487?page=0,1
Here is a snapshot from material A that told me session resumption will be failed if I called SSL_free, even if save the session via SSL_get1_session().
But a piece code in material B show me SSL_free will result in nothing for session resumption. Because SSL_get1_session will increase the reference counter in session object and allow SSL object to be reused after session freed.
Here is the snapshot from material B:
So, those confused me so much, and which one is truly correct?
Thx!
I think source A is wrong and I think it mistakes SSL_get1_session with SSL_get_session, which actually is SSL_get0_session (does not increment the counter). The OpenSSL documentation is clear in this issue.
The man page fully supports the second statement.

jmeter stop current iteration

I am facing the following problem:
I have multiple HTTP Requests in my testplan.
I want every request to be repeated 4 times if they fail.
I realized that with a BeanShell Assertion, and its already working fine.
My problem is, that I don't want requests to be executed if a previous Request failed 5 times,
BUT I also dont want the thread to end.
I just want the current thread iteration to end,
so that the next iteration of the thread can start again with the 1st request (if the thread is meant to be repeated).
How do I realize that within the BeanShell Assertion?
Here is just a short extract of my code where i want the solution to have
badResponseCounter is being increased for every failed try of the request, this seems to work so far. Afterwards, the variable gets resetted.
if (badResponseCounter = 5) {
badResponseCounter = 0;
// Stop current iteration
}
I already checked the API, methods like setStopTest() or setStopThread() are given, but nothing for quitting the current iteration. I also need the preference "continue" in the thread group, as otherwise the entire test will stop after 1 single request failed.
Any ideas of how to do this?
In my opinion the easiest way is using following combination:
If Controller to check ${JMeterThread.last_sample_ok} and badResponseCounter variables
Test Action Sampler as a child of If Controller configured to "Go to next loop iteration"
Try this.
ctx.setRestartNextLoop(true);
if the thread number is 2, i tried to skip. I get the below result as i expected (it does not call b-2). It does not kill the thread either.

UKHost4U and MySQL - How to connect?

been waiting an hour to find out correct way to connect to mysql at UKHOST4U, thought someone on here may know?
Been using the following code, database, user & password are all setup correctly:
$hostn='localhost';
$dbn='cpanel1_dbname';
$passn='password';
$usern='cpanel1_usrname';
$dbh = #mysqli_connect($hostn, $usern, $passn, $dbn);
if(!$dbh)
die('hmm that did not seem to work; please try another day..');
I have obvioulsy changed the actual values.
I have just moved to UKHost4U - Am I missing something?!
I had to contact them and 'then it worked' as per normal..