Sunday, February 9, 2020

Test execution in MSBuild

Create MsBuild vs Visual studio build ,


https://devblogs.microsoft.com/visualstudio/msbuild-is-now-part-of-visual-studio/

MSBuild 4.5 is still part of the .NET 4.5.1 Framework. here are a great number of reasons that you may want to use MSBuild and other build tools without needing to install Visual Studio so we are making the tools available as a new standalone package called Microsoft® Build Tools. 
https://www.microsoft.com/en-us/download/details.aspx?id=40760

MSBuild and its Toolset now Version with Visual Studio

Each release of the Micrsoft® Build Tools will have a new version of MSBuild, the VB/C# Compilers, and Toolset. They will all version together. Visual Studio will use its corresponding version of MSBuild exclusively. For instance, Visual Studio 2013 will exclusively use MSBuild 2013 and ToolsVersion=”12.0”. To align with Visual Studio’s versioning we have updated MSBuild’s assembly version from 4.0 to 12.0 as well.


https://docs.microsoft.com/en-us/visualstudio/msbuild/walkthrough-creating-an-msbuild-project-file-from-scratch?view=vs-2019

Create a  new visual studio project. Do not build.

check the msbuild folder in your system.
C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe

Now in cmd prompt go the visual studio solution directory.


After executing we can see the build generated. 




Starting with Visual Studio 2013, the 2013 version of MSBuild will ship as a part of Visual Studio instead of the .NET Framework.




Gatling Performance testing tool

Friday, February 7, 2020

JDK vs JVM vs JRE (Find JDK JRE JAVA version) : Set Java Path Java_Home


JDK  = Windows SDK
JRE   = .Net Framework
Javac  = .Net Compiler
JVM (Java Virtual Machine  = CLR(Common Language Runtime)

--todo--
https://daisy.github.io/pipeline/Get-Help/Troubleshooting/Common-Errors-Windows/



https://stackoverflow.com/questions/8472121/which-jre-am-i-using/8472139#8472139

In Windows Command Prompt:
java -XshowSettings:properties -version
java -version // This will check your JRE version
javac -version // This will check your Java compiler version if you installed the JDK

***********

Setting Environmental Variables:


System Variables.

JAVA_HOME



Commands to check version




********

http://net-informations.com/java/intro/jvm.htm

******


******


*****

https://www.stackchief.com/blog/Which%20Version%20of%20Java%20Should%20You%20Use%3F

Developer Version vs Product Version

After installing Java, you can run java -version to see which version you have installed. You may see something like java version "1.8.0_71". This is considered the developer version whereas the product version would be 8.0. It's all the same thing...

JDK vs JVM vs JRE

Java requires a runtime environment to execute the code you write. When you download Java, you also get the Java Runtime Environment (JRE). This JRE includes a Java Virtual Machine (JVM) which is an abstract computing machine that enables your computer to run a Java program.
The Java Developer Kit (JDK) is a development environment that you download for developing Java applications. It includes the JRE as well as an interpreter, compiler, and other tools for debugging and development. You'll need the JDK to develop Java applications, but not to run them. This is because the JRE is included with Java installs.









Http Header Fields

https://www.tutorialspoint.com/http/http_header_fields.htm
https://en.wikipedia.org/wiki/List_of_HTTP_header_fields


MIME types : Multipurpose Internet Mail Extensions

Reference:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types

MIME type serves the same purpose on the Internet that file extensions do on Microsoft Windows.

The simplest MIME type consists of a type and a subtype

type/subtype
Example:
application/javascript



An optional parameter can be added to provide additional details:
type/subtype;parameter=value
For example, for any MIME type whose main type is text, the optional charset parameter can be used to specify the character set used for the characters in the data. If no charset is specified, the default is ASCII (US-ASCII) unless overridden by the user agent's settings. To specify a UTF-8 text file, the MIME type text/plain;charset=UTF-8 is used.
All HTML content should be served with this type.
      text/html
As Per the HTML specification, JavaScript files should always be served using the MIME type text/javascript. 
No other values are considered valid, and using any of those may result in scripts that do not load or run.

text/javascript

Other examples


image
Image or graphical data including both bitmap and vector still images as well as animated versions of still image formats such as animated GIF or APNG. Common examples are image/jpeg, image/png, and image/svg+xml.
textList at IANA
Text-only data including any human-readable content, source code, or textual data such as comma-separated value (CSV) formatted data. Examples include text/plain, text/csv, and text/html.

Also read : Http Headers
https://www.tutorialspoint.com/http/http_header_fields.htm

JMeter Simple Controller

  Simple Controller is just a  container  for user request.