Tuesday, March 24, 2020

Service Account

https://www.vegaitsourcing.rs/media-center/blog/chapter-2-jenkins-service-account-setup-and-certificates

Service account, in few words, is an account by which rights and privileges some tool will perform its tasks.

So, in this case, when JENKINS server will try to do some builds or actually to perform any operation against operating system, it will use that service account. Technically speaking, service account is same like regular interactive accounts but it has its own specific purpose and in most cases it's not used for any other interaction. 

JMeter If Controller ${__javaScript(vars.get("key1").length > 5)}


Monday, March 23, 2020


Beanshell pre processor:
vars.put("autoapproval", "true");
log.info("auto12311111111111111111111111111111111111111111  "+vars.get("autoapproval"));

inside If controller
${autoapproval}



Saturday, March 21, 2020

Git Create new repository local and push to remote, git clone




---------------------------------------------------------------------------------------------------------------------

Git clone command in LDAP
https://serverfault.com/questions/269067/git-clone-with-user-and-password
http://user:password@host.com/name/.git
------------------------------------------------------------------------------------------------------------------------

Click on Create Repository









Create local folder as shown below.


















Thursday, March 19, 2020

Amazon web service and EC2

amazon Ec2 is an IAAS (Infrastructure as as serivce) from AWS. Its compared to a VM in the data center world.

Application (Programming) Language vs Scripting Language

https://www.programmingeeks.com/scripting-vs-programming-languages/

The compiled languages came to be known as programming languages and the ones that utilized an interpreter were known as scripting languages.

Scripting Language:
Interpreter based, no need to compile
Does not create a file type
JavaScript, PHP, Ruby, Perl, VB Script, etc.


Programming Language:
Compiler based ,needs to compile first
Creates a .exe file
C, C++, Java, Pascal, C#, VB, Basic, COBOL, etc.


Online IDE: https://repl.it/


BeanShell : Java light weight interpreter scripting language , used in JMeter


https://beanshell.github.io/manual/bshmanual.html

Download .jar file https://beanshell.github.io/download.html

place it in
__JavaInstalltionPath_\lib\ext folder
       C:\Program Files\Java\jre1.8.0_231\lib\ext

Check JavaPath is pointing correctly.

We can run in command prompt as well in GUI

1) Cmd Prompt


2) GUI

Open GUI command








Cookies vs Sessions


Cookies are textual information created by server and stored on client machine only. Cookie can only be read from the domain that it has been issued from. For example, a cookie set using the domain www.guru99.com cannot be read from the domain career.guru99.com.
Most websites are having option to disable cookies, third party cookies or both. 
Cookies Ex: Page visited information, User preferences, remembering username and password.

Sessionsessions get stored on the client as well as a server. A session creates a file in a temporary directory on the server where registered session variables and their values are stored. This data will be available to all pages on the site during that visit.
Whenever a session is created, a cookie containing the unique session id is stored on the user’s computer and sends the session id with every request to the server.
If the client browser does not support cookies, the unique session id is displayed in the URL.The session values are automatically deleted when the browser is closed.

Key Differences:
  • Cookies are client-side files that contain user information, whereas Sessions are server-side files that contain user information.
  • Cookie is not dependent on session, but Session is dependent on Cookie.
  • Cookie expires depending on the lifetime you set for it, while a Session ends when a user closes his/her browser.



Thursday, March 12, 2020

SMTP vs IMAP/POP3


Simple Mail Transfer Protocol

Internet Message Access Protocol:

Post Office Protocol version 3 

SMTP is used for sending emails while IMAP/POP3 is used for retrieving emails


Post Office Protocol version 3 (POP3) is a standard mail protocol used to receive emails from a remote server to a local email client. POP3 allows you to download email messages on your local computer and read them even when you are offline.

The Internet Message Access Protocol (IMAP) is a mail protocol used for accessing email on a remote web server from a local client. IMAP and POP3 are the two most commonly used Internet mail protocols for retrieving emails.



Swagger /OpenAPI : API documentation



https://dotnettutorials.net/lesson/how-to-use-swagger-in-web-api/

1. Create a Web API project
2.  Install Nuget package Swashbuckle:  https://www.nuget.org/packages/Swashbuckle/






Start a new debugging session by pressing the F5 key and navigate to http://localhost:[PORT_NUM]/swagger and then you should see the help pages for your APIs.

Now expand an API and then click on the “Try it out!” button which will make a call to that specific API and return results











JMeter Simple Controller

  Simple Controller is just a  container  for user request.