Quantcast
Channel: Pochampalli IT Labs
Browsing all 261 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Integration of Cucumber with Selenium and TestNG, Maven | end to end example...

Hi, In this post, we'll learn about how to integrate Cucumber with Selenium, TestNG and Maven. This is as part of a project that we wanted to migrate the UI automation from Junit frame work to TestNG...

View Article


Image may be NSFW.
Clik here to view.

Cucumber scenarios parallel execution with ThreadLocal driver and dynamic...

Hi, In this post, we will see how to run cucumber scenarios in parallel with TestNG. What is parallel testing in cucumber? Parallel testing in Cucumber refers to the ability to execute Cucumber...

View Article


java.lang.NoSuchMethodError: 'void...

The following worked for me with the dependencies mentioned in pom.xml If you are on 7.8.0 TestNG downgrade it to 7.7.0or do not take testng dependency rather take cucumber-testng  and cucumber-java...

View Article

Perl script to send html file as an attachment in email | How to send...

Below Perl script  with MIME::Lite utility in Cents OS is does the job of sending an email with html attachment. This is one of the basic techniques used to send an automation report after execution...

View Article

Send latest cucumber report as email notification after automation execution

 Hi, In this blog post, we will see the core concept that worked for us to send cucumber report or extent report as notification after running automation. Normally, sending email is done through an...

View Article


Run newman/postman collection from batch file with html extra report

Hi, using "call" command, one can run newman collection from a batch file. This doesn't require to open Node.js command explicitly. More about call :...

View Article

Replace in postman java script | replace domain name with ip in url and then...

Let us assume a POST response is returning a URL in header.  Now, how to replace the DNS name with IP address and set the URL as environment variable ? Below postman java script does the job. The first...

View Article

Batch script to execute newman/postman collection on two different...

Hi, batch script below does the following: 1) Delete newman html extra report if already exists in Reports folder under C drive2) Starts two command prompts in the background and calls the node.js to...

View Article


Image may be NSFW.
Clik here to view.

Batch script to copy newman report from windows machine to linux machine

To copy newman html report (or in general any file) from windows machine to linux machine use below batch script. PuTTY should be installed in the windows(source machine) and pscp.exe should be there...

View Article


Image may be NSFW.
Clik here to view.

Batch script to run perl file in linux machine | How to connect to linux in...

To run a perl file placed in linux machine from batch file use "plink" utility of PuTTY in batch scripting. As shown below write batch script and as on execution of batch file in windows machine, the...

View Article

Batch script to run MS SQL server sql commands

 Hi, use "sqlcmd" utility in batch script run a set of sql commands/queries through batch script. Make sure to install the following odbc driver and command line utilitymsodbcsql.msi and...

View Article

Workaround fix to specify custom download path for ChromeDriver 114 or...

Hi, The following questions and the fix is a work around to download the file to a custom folder in with chrome driver/browser with 114 version Are you getting asked to Save the file while trying to...

View Article

Image may be NSFW.
Clik here to view.

How to get currentDate+1day (Tomorrow's date) in m/dd/yyyy format in postman

In Postman Tests section write below code. const currentDate = new Date();currentDate.setDate(currentDate.getDate() + 1);const formattedDate = `${currentDate.getMonth() +...

View Article


Image may be NSFW.
Clik here to view.

java.lang.NoSuchMethodError: 'void...

When you see below error add : TestNG to the build path [RemoteTestNG] detected TestNG version 7.8.0SLF4J: Failed to load class"org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation...

View Article

Image may be NSFW.
Clik here to view.

How to stop auto downloading of log4j-1.2.12 in selenium , testng, maven...

When you create a new maven project in eclipse and try to update it, you would likely to an auto download of 1.2.12 log4j jar that is variable. One possible reason I came across on this is due to 1.5...

View Article


Image may be NSFW.
Clik here to view.

Tip: Connection Expression for Sub report for XmlDataSource in jasper reports

 In an XML data adapter report, when you call a sub report of same data adapter in master report, one can use below expression to establish connection....

View Article

Windows based authentication using encoded url in selenium cucumber

Use below code to login to an application that uses windows based pop-ups.  @Given("Windows based authentication with encoded url") public void loginApp() throws Throwable { String applicationURL =...

View Article


How to run power shell script file in selenium cucumber AfterAll hook using...

@AfterAll(order =1)// Cucumber AfterAll hook with order 2publicstaticvoidputFile()throws JSchException, SftpException, IOException, InterruptedException { Log.info("AfterAll - with order=1");...

View Article

PowerShell script to attach cucumber report and send email by running .ps1 file

Save below code as .ps1 file# How to run .ps1 from command line ? # powershell.exe -ExecutionPolicy Bypass -File qa-smoke-newman.ps1$sendMailFromE1 = @{    From = 'AutomationTeam@email.com'    Subject...

View Article

Image may be NSFW.
Clik here to view.

Azure DevOps CI(Continuous Integration) Pipeline to build selenium with...

 YAML script:pool:  name: Azure Pipelines  demands: mavensteps:- task: Maven@3  displayName: pom.xml  inputs:    mavenPomFile: UIAutomation/pom.xml    goals: 'clean package assembly:single'    options:...

View Article
Browsing all 261 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>