{{theTime}}

Search This Blog

Total Pageviews

Windows 8.3 file naming setting is disabled for the product

To enable Windows 8.3 file naming setting use fsutil command

Example:  c:\> fsutil 8dot3name set C: 0

your current security settings do not allow this file to be downloaded

Update the Internet Explorer Security Options to enable File Download
Goto Open Internet Explorer --> Tools -->Security Tab-->Internet Zone-->CustomLevel-->File Download -Enable.

Could not get unknown property 'release' for SigningConfig container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer

 This error will be thrown when release property is not defined in the SigningConfig.

Add the release property to the build.gradle file when release type is changed to release.

signingConfigs {

     release {

          keyAlias keystoreProperties['keyAlias']

          keyPassword keystoreProperties['keyPassword']

          storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null

          storePassword keystoreProperties['storePassword']

     }

 }

buildTypes {

    release {

        signingConfig signingConfigs.release

    }

}

Algebra using Python Lambda

Write a function to multiply the number by 10 using Lambda

x = lambda a : a * 10
print(x(5))

connection problems: Client unknown

To resolve this issue while setting up the P4 Integration in IntelliJ, update the workspace name as client. 
To open the settings, use the shortcut key Ctrl+Alt S.


 

A problem occurred evaluating SDK in IntelliJ

Check IntelliJ SDK Configuration.

- From the File Menu, select Project Structure, Platform Settings and SDKs

Cucumber Eclipse sample program

Cucumber Eclipse SetupCreate Eclipse Maven Project
  • Open pom.xml
  • Goto Dependencies
  • Add GroupId: info.cukes, Artifact Id: cucumber-java, Version: 1.2.5
  • Add GroupId: info.cukes, Artifact Id: cucumber-junit, Version: 1.2.5Create Features Folder and add StepDefinitions.feature file
Create a Feature File
  • Feature: Login Feature
  • Scenario: Verify Login Functionality
  • Given I will open the browser
  • When I will open Facebook website
  • Then Login button should exists
Create StepDefinitions Java Class

import cucumber.api.java.en.Given;
import cucumber.api.java.en.When;
import cucumber.api.junit.Cucumber;
import junit.framework.TestCase;
import cucumber.api.java.en.Then;
import org.junit.runner.RunWith;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;public class StepDefinitions{
WebDriver driver = null;
@Given("^I will open the browser$")
public void openBrowser() {
System.setProperty("webdriver.chrome.driver", "chromedriver_win32\\chromedriver.exe");
driver = new ChromeDriver();
}
@When("^I will open Facebook website$")
public void goToFacebook() {
driver.navigate().to("https://www.facebook.com/");
}
@Then("^Login button should exists$")
public void loginButton() {
if(driver.findElement(By.id("u_0_v")).isEnabled()) {
System.out.println("Pass");
} else {
System.out.println("Fail");
}
driver.close();
}
}

Create CucumberRunner.java

import org.junit.runner.RunWith;
import cucumber.api.junit.Cucumber;
import cucumber.api.CucumberOptions;@RunWith(Cucumber.class)
@CucumberOptions(
features="Features"
)
public class CucumberRunner {}

Windows 8.3 file naming setting is disabled for the product

To enable Windows 8.3 file naming setting use fsutil command Example:  c:\> fsutil 8dot3name set C: 0