Wednesday 7 December 2022

aaaaa


+94770320006

Bank CodeBranch Code
7135249


this is usd account only you can trancefer USD


Saturday 12 December 2020

Tesla Autopilot explained

 Tesla Autopilot explained:

What is it, is it safe?

This guide explains exactly what a Tesla Autopilot is and how it works, and an insight into what the system sees on the road



The self-driving car is not yet a reality for the average car owner, but Tesla is starting to get closer to the automatic pilot with its automated technologies.


The latest hardware is called Enhance Autopilot and is fitted to all Tesla models. It is even available in the new Model 3 - the company’s most affordable car.


However, some road safety organizations have criticized Autopilot and other similarly named systems, arguing that such names "do not help as much as they assume the car can do more than it can do." Specialists at Thacham Research recently showed that relying solely on automated pilots can be dangerous.

However, Tesla promises that its automatic pilot system will eventually provide full self-driving capabilities. CEO Elon Musk once said that by the end of 2017, Tesla could move from one U.S. coast to another - but he later pushed that forecast to the end of 2018.


A video released by Tesla in 2016 gives an insight into what stage its fully self-driving system has, and what the car sees when roaming the streets alone.


It will happen a few years ago to see fully automatic cars on the road, however, not just because the technology is not ready yet. Some areas of legislation, such as the insurance industry, are ready for their arrival, while others, including driving laws, are not yet fully equipped to provide full facilities for self-driving vehicles.




Stages of self-control


Most industry experts agree that there are five levels of self-regulation. First, include advanced driver assist systems (ADAS) such as first-level automatic emergency braking, adaptive cross control, lane stop, blind spot and cross-alarm. These systems are well established and generally available.


Level 2 includes 'hands-off' systems, which means the car must accelerate, brake and move under certain conditions - these systems must be monitored even if the driver is always in control. Tesla's automatic pilot system can be classified as a 2 level system with Volvo's Pilot Assistant and Nissan's Propilot.




Level 3 self-regulation includes 'eye-cutting' systems, which allow the driver to safely get out of the way and rely on the driver to drive the car and apply the emergency brakes - but be prepared to accept them from the system if called upon. . To do so. The latest Audi A8 is the only car that is said to include Level 3 systems - but the A8 Level 3 technology only works at 37.3 miles per hour and is not active in this country as UK laws currently prohibit driving a handless car. On the steering wheel.


Current production cars are not capable of Level 4 autonomy. Level 4 describes a fully self-driving car that allows the driver to fall asleep - but automation systems only operate in specific 'geo-protected' locations.


Atomic cars are the only true automatic stage. Level 5 cars can be driven in any situation and anywhere.


Tesla Model X - front static

The fully self-driving system may be a few years away, but Tesla is already preparing cars for full autonomy with its latest autopilot hardware fitted to the Tesla Model S, Tesla Model X and the upcoming Tesla Model 3.


With eight 360-degree cameras, the car can see 250 meters in all directions, and has 12 upgraded ultrasonic sensors and a new keyboard computer that is 40 times more powerful than the old one.




Tesla Autopilot Overview


The first thing to understand is that Tesla's autopilot does not take on all the driving duties, because in this case, it is only partially self - driving. The longevity of the motorcycle allows the driver to get his hands off the wheel, but the driver must always focus on the road ahead and be prepared to intervene when necessary. These are the key features of the automotive pilot of cars manufactured from September 2014 to October 2016.


1) Autosteer

The autosteer, which works with a radar control system, lane cameras and a complete set of sensors, allows the wheel of a motorcycle or dual vehicle to be dropped while the car is in motion. Radar control and automatic braking mean that you do not crash in front of the automatic car.

Monday 7 December 2020

cucumber java tutorials for biginers

 



The BDD- Behavior Driver Development is basically the Software development process that actually originated from TDD. It is an extension of TDD, which is having Tests written in plain English language and explained as the behaviour of the application. Each Test/Scenario is written such way that the user can relate and understand those testes with the application. This is one of the major benefits of BDD that even a business person or stack-holders of the project can also understand how automation is going through the steps and can understand the execution process.

BDD with Cucumber

Cucumber is a testing tool which supports Behavior Driven Development (BDD). The language it uses is Gherkin which is nothing but the plain meaningful English text. Cucumber supports many other languages like ruby, python, java any others for automation.


A feature file consists of the following elements:

  • Feature − Name of the feature under test.
  • Description − Describe feature under test.
  • Scenario – Your Test Scenario (Objective).
  • Given − Prerequisite before the test steps get executed.
  • When − Specific condition which should match in order to execute the next step.
  • Then – It is kind of validation after “When” Statement getting executed



Step Definitions

We have got our feature file ready with the test scenarios defined. However, this is not the complete job done. Cucumber doesn’t really know which piece of code is to be executed for any specific scenario outlined in a feature file.

This calls the need of an intermediate – Step Definition file. Steps definition file stores the mapping between each step of the scenario defined in the feature file with a code of the function to be executed.

So, now when Cucumber executes a step of the scenario mentioned in the feature file, it scans the step definition file and figures out which function is to be called.


Behavior-Driven Development (BDD) is an approach to develop software solutions guided by examples, instead of more generic specifications that might guide the development differently (e.g., creating foundation first and then adding the functionality). The examples model the behaviour expected in the software solution once completed. Commonly, these examples are captured as automated scripts in Gherkin (Given-When-Then) and used to guide (or drive) the creation of the code that would implement the associated behaviour. Notice, however, that BDD, in its current stage, does not prescribe automation. It’s more about having conversations about the behaviour than automating “tests”. 


before start with cucumber, you need to install cucumber plugin in eclipse marketplace

 we are going to go step to learn cucumber using java and we will learn how to set up our

project in Eclipse so let's get started

and step number one is we have to create a new maven project in Eclipse so I will go to my Eclipse and here I am on my windows an Eclipse in case you are on Mac you can follow the same steps so here you can use Eclipse is on Mac and this one is on Windows so I am going to follow this on Windows but I will tell you if there are any differences you can follow this on Windows or Mac operating system so here I have to create a new maven project that is step number one I can do a right-click under the package Explorer and go to new and here I can go to others you can also go to your file and then go to new and go to others and here search for maven and you will find an option for maven project now in all the recent versions of Eclipse maven plugin is already installed and you will directly find this option just in case you are using a very old version of Eclipse.

 I will select create a simple project so that it can skip the archetype selection and say

next and here I will give the group ID and artefact ID so I will say this is cucumber Java project or you can say cucumber Java selenium any name you can give here I will again say cucumber Java and I will click on finish and this will

create the project  just go to

new and go to Java and say next and you can create working  folders and the files present and here you will find a file called pom.xml where we can add our dependencies so we have done step number one which is create a new maven project and now step number two is we will add the Maven dependencies for cucumber java cucumber TestNG and selenium Java now I will add these dependencies one by one so that I can  see libraries or dependencies are used in total these are the four dependencies that we will need so let me start with cucumber Java and for that, here I


from now on I'm going to stop this article. I will suggest you for pom.xml to continue in the next article it incudes selenium , junit and extent reports.


<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.7.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.7.0</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.5</version>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-jvm-deps</artifactId>
<version>1.0.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.vimalselvam</groupId>
<artifactId>cucumber-extentsreport</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>3.1.2</version>
</dependency>
</dependencies> 

Saturday 29 August 2020

how to open chrome browser in selenium python with example

hello everyone and welcome to a brand new series on selenium in Python.selenium is this is a framework that allows us to interact with HTML elements. from any website so rather than just. scraping information which we can do with selenium we can grab information from web pages we and also interact with it so we could, in theory, make things. like BOTS we can have you know like and automated the script that goes through and test different aspects of our website

 

chrome browser version



it's actually quite useful and it's.pretty easy to get set up which we're gonna be doing in this video so some common examples of things you could do with selenium just basic movements are like drag-and-drop clicking a button filling in a form entering something in a search field grabbing data from some specific tags finding elements in the source code reading the entire page source code pretty much anything you.want to do with a web page, you can automate that with this Python selenium.stuff the scripting which I'm going to be showing you which I think is pretty cool so we need to get into the setup. here I will say if you appreciate this type of content where this artical.

 

Tuesday 25 August 2020

lucid electric car rated range of 517 miles on a single charge | Lucid Air | Luxury EV | Electric Sedan

lucid air price lucid motors news

a lucid electric car rated range of 517 miles on a single charge | Lucid Air | Luxury EV | Electric Sedan lucid electric car rated  news

lucid motors news 2020

Sunday 23 August 2020

drag and drop in selenium java explained

selenium drag and drop not working is not a problem anymore because I'm going to explain three ways to drag and drop using selenium. I created a page to perform drag and drop actions and anyone can use it to automate their tasks. Click here to go to that page page

selenium drag and drop


when we talk about drag and drop we can use Action class because consists of the built-in capability to handle keyboard and mouse events. 

first, we need to create an object of Action class

Actions action = new Actions(-driver-);


using action class we can perform following user actions 


click(): Clicks on web element.

doubleClick (): Double click on the web element.

contextClick() : Performs a right-click 

clickAndHold(): Clicks at the given mouse location without releasing.

dragAndDrop(source, target): Clicks at the reference location and make movements to the place of the target without releasing the mouse.

dragAndDropBy(source, xOffset, yOffset): click-and-hold at the location, changes by a given offset value, then releases the mouse. 

moveToElement(toElement): It moves to the mouse to the given element.

release(): Releases the pressed left mouse button at the existing mouse location.


actually, drag and drop command is predefined methods which will do our task

after that, we can use drag and drop command in drag and drop command is a convenience method that performs click-and-hold at the location of the source element, moves to the location of the target element, then releases the mouse.

 action.dragAndDrop(webelementneedtodrag,webelementneedtodrop).perform();

perform() is used to execute the method of actions class


another method very similar to the above example it consists of MoveToElement and clickAndHold

 to build and perform we can use always 


WebElement frm = ChromeDriver.findElement(By.xpath(from));

WebElement o = ChromeDriver.findElement(By.xpath(to));

    Actions action = new Actions(ChromeDriver);

    action.moveToElement(frm)

    .clickAndHold()

    .moveToElement(o)

    .build()

    .perform();


below example object can move using the location-based locator 

we can get web element location by getLocation() method and use of getX() and getY() using those methods e can locate element x-axis and y-axis of drop location.



WebElement From = ChromeDriver.findElement(By.xpath(from));

WebElement To = ChromeDriver.findElement(By.xpath(to));


int x = To.getLocation().getX();

int y = To.getLocation().getY();


Actions actions = new Actions(ChromeDriver);

actions.moveToElement(From)

        .pause(Duration.ofSeconds(1))

        .clickAndHold(From)

        .pause(Duration.ofSeconds(1))

        .moveByOffset(x, y)

        .moveToElement(To)

        .pause(Duration.ofSeconds(1))

        .release().build().perform();




Saturday 22 August 2020

Drag and drop playground for automation

visit 

Drag me to my target

Drop here

https://techbitezzz.blogspot.com/2020/08/drag-and-drop-in-selenium-java-explained.html

aaaaa

+94770320006 Bank Code Branch Code 7135 249 this is usd account only you can trancefer USD