WDmore – Want more Do more

How to get all information you need from applicant in a reasonable time? Interview is very specific topic, you never will find the universal way, how to make interview of applicant perfect. Nevertheless I think, there are exists some basic rules, which can help you to make it really professional. On this post I would like to …
Read more

Useful tools, frameworks for automation testing

November 29th, 2017 | Posted by uafinder in QA/Testing - (Comments Off)

Grafana – allow you to store and represent any data in a very nice way. Dashboards, graphics, reports. See more details on official site Allure – allow you to represent test automation results in UI. See more details here Selenoid – allow you to set up very powerful infrastructure to run GUI tests. Including different …
Read more

C# Start Thread. Execute code in thread

September 18th, 2015 | Posted by uafinder in Software Development C# - (Comments Off)

To start code execution in new thread use: var task = Task.Factory.StartNew(() => { //your code }); task.Wait(TimeSpan.FromSeconds(10));  //wait till code finished in thread

Force Kill windows started service via cmd

August 25th, 2015 | Posted by uafinder in IT general | Software Development Java - (Comments Off)

Get PID of service tasklist /v Then kill by PID taskkill /f /pid [PID]

SQL Test for candidate on position Senior QA

August 13th, 2015 | Posted by uafinder in QA/Testing - (Comments Off)

Precondition: Table_1 User Id (INTEGER) UserFirstName (VARCHAR) UserLastName (VARCHAR) 1 Tim Barton 2 Sem …   Table_2 UserDetails UserId (INTEGER) Phone (VARCHAR) DOB (DATE) Address (VARCHAR) Active (INTEGER) 1 +380991221212 Kyiv  Barada Street 1 ap 355 1 2 0   Table_3 UserRelations ParentUserId (INTEGER) ChildUserId (INTEGER) 1 2 Column User.Id is primary key for UserDetails.UserId, …
Read more

How to run MSSQL as domain user

July 28th, 2015 | Posted by uafinder in IT general - (Comments Off)

To run program (ms sql) as domain user to use windows authentication to login to data base. Open CMD and start program: runas /netonly /user:domain\username “C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\Ssms.exe”

To set custom value for header Content-Type: HttpContent body = new StringContent(“CustomBodyContent”); body.Headers.ContentType = new MediaTypeHeaderValue(“YourCustomContentType”); public class Client { private readonly HttpClient _httpClient; public Client(string url) { _httpClient = new HttpClient(new LoggingHandler(new HttpClientHandler())); var clientTimeoutSeconds = int.Parse(ConfigurationManager.AppSettings[“clientTimeout”]); _httpClient.Timeout = TimeSpan.FromSeconds(clientTimeoutSeconds); var baseUrl = new Uri(url); _httpClient.BaseAddress = baseUrl; } public HttpResponseMessage Post(string path, string bodycontent …
Read more

C# Singleton Example code

May 6th, 2015 | Posted by uafinder in Software Development C# - (Comments Off)

Here is example of singleton for class on c# using System; using System.Configuration; namespace SomeName { public class ExampleSingleton { private static readonly Lazy<ExampleSingleton> Instance = new Lazy<ExampleSingleton>(() => new ExampleSingleton ()); private ExampleSingleton(){} public static ExampleSingleton GetInstance { get { return Instance.Value; } } } }

Main Class using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using System.Web; ///<summary> /// Client allow to send Http request with different combination /// of Http Methods, Url Parameters, Body and Custom Headers /// <returns> /// HttpResponseMessage wich allow to extract all needed /// data, such as …
Read more

Jmeter script example

April 1st, 2015 | Posted by uafinder in QA/Testing - (Comments Off)

Here is a good example of Jmeter script for load testing. – Save to file.jmx – Open file using Jmeter <?xml version=”1.0″ encoding=”UTF-8″?> <jmeterTestPlan version=”1.2″ properties=”2.6″ jmeter=”2.11 r1554548″> <hashTree> <TestPlan guiclass=”TestPlanGui” testclass=”TestPlan” testname=”Test Plan” enabled=”true”> <stringProp name=”TestPlan.comments”></stringProp> <boolProp name=”TestPlan.functional_mode”>false</boolProp> <boolProp name=”TestPlan.serialize_threadgroups”>false</boolProp> <elementProp name=”TestPlan.user_defined_variables” elementType=”Arguments” guiclass=”ArgumentsPanel” testclass=”Arguments” testname=”User Defined Variables” enabled=”true”> <collectionProp name=”Arguments.arguments”/> </elementProp> <stringProp name=”TestPlan.user_define_classpath”></stringProp> …
Read more