In this short article I would like to present to you the source code of a simple prototype generic tester which is based on NUnit and Selenium frameworks. The generic NUnit tester uses Selenium web drivers for executing a UI integration testing example unit test. The tester is generic and the test case / scenario written inside it run for multiple web browsers by using each time the appropriate Selenium web driver. This can help you in such a way that you can write your unit tests once and also run all for multiple web browsers automatically.
In this article I will present to you a dynamic string data structure helper implementation. In C, a string is just an array of characters terminated with the null character (NUL in ASCII). Also, some times we handle a string by using a pointer to a buffer containing sequential characters terminated also with the null character. The C standard liibrary provides various functions for string manipulation but it seems that whenever we want to extend a string by using pointers we have to perform all the time memory reallocation which leads to a bad evolution of replicated code. In a recent project, I needed to create a string and append to it any number of new strings in order to extend it without using strcat, strcpy, strlen and realloc functions all the time. So, I created a simple dynamic string data structure which solved my specific problem and I would like to share it with you people.
In this article I will present to you a useful function for getting the host name and service of a socket.