378 questions
0
votes
1
answer
169
views
How to fix DataDriver error in Robot Framework: "ImportError: cannot import name : "FileNotFoundError" from 'pandas.compat"?
I get this error when hovering on the DataDriver Library
Unresolved library: DataDriver. Error generating libspec: Importing library 'DataDriver' failed: ImportError: cannot import name : "...
1
vote
1
answer
558
views
Handling empty cells and using null in Examples from a CSV file
The problem involves handling empty cells and using null in 'Examples'.
Our test data is read from CSV files with various combinations, and not all values are always present in the columns (...
0
votes
0
answers
92
views
Passing Context ForEach variables to It blocks
Why are the variables in my Context -ForEach cases not being passed to the It blocks underneath the Context? I have this code in my test file.
BeforeAll {
Import-Module Pester
Import-Module ...
-1
votes
1
answer
218
views
how to handle marketplace discovery strategy failed with an error in eclipse?
Eclipse: eclipse marketplace is not working properly.
I am trying installing TestNG & Cucumber plugin on Eclipse, But when i search TestNG in find textbox & enter it is showing ...
0
votes
1
answer
84
views
How can I run Same Test Case Multiple Times with Different Set of Data using TestNG + Selenium WebDriver
I have one utility class as DataManager.java where I have written a method to read data from an excel sheet.
public static XSSFWorkbook xssfWorkbook;
public static XSSFSheet xssfSheet;
public static ...
0
votes
0
answers
69
views
Facing issue in Data driven testing using excel sheet in eclipse under robot framework
I am trying to automate login page with the help of data driven testing by excel reading but it's throwing the error. kindly help me.
enter image description here
*** Settings ***
Library ...
0
votes
2
answers
134
views
Data source name not found while running the unit test
I am writing a data driven unit test. The input is an excel of type ".xlsx". I took reference from here: https://learn.microsoft.com/en-us/previous-versions/ms404700(v=vs.90)?redirectedfrom=...
1
vote
1
answer
961
views
MSTest differences between .NET Core and .Net Framework projects
TL;DR
Are there significant differences in those 2 types of unit test projects?
Do I have to always use matching UT project type to application (.Core WPF -> MSTest .Core or .Framework), or it ...
0
votes
1
answer
149
views
When we use dataProvider and when we use external data sources (XML, Excel, JSON), and why for data-driven testing in Automation?
I am new to Automation Testing while using data-driven testing we need to send data from external sources like XML, JSON, or excel files or sometimes from dataProvider in a java file. But when should ...
1
vote
2
answers
1k
views
Karate:How to make data initialization only execute once
In this feature file, the @setup Scenario will run twice due to there are two other scenarios outline use it
Feature:
@setup
Scenario:
def data = [{a: 1}, {a: 2}, {a: 3}]
Scenario Outline: row
print '...
0
votes
1
answer
75
views
How to transport a Selenium package to a client environment?
I need to develop a automation package using selenium and send it over to a different location and completely different environment so that it will aid in the testing's happening there. It has to be ...
0
votes
0
answers
250
views
How to Execute Selenium Selenium Test Cases based on Excel Flag. If Yes only then run the test cases using JAVA
Flag Yes only should be run. Else part won't execute but if the condition is failed, else is getting passed.
if(data.get(Flag).equals("Yes}) && data.get(TC_Name).equals("TC_Name"...
1
vote
1
answer
305
views
I want to run Scenario Outline in loop for one of the variable configurable
I have use case in which I am making server name configurable using Scenario outline for get call. But I also want to make another variable like ID configurable. I want using that id it should run for ...
4
votes
1
answer
414
views
Selenium and MSTest: [DataRow] at a TestClass level?
Many thanks in advance!
I am creating a Selenium framework (C#, MSTest) and got stuck, trying to make the tests data-driven.
What I am trying to achieve:
I need to support logging in the application ...
0
votes
1
answer
2k
views
writing to excel sheet in robot framework
I have test cases in robot framework.
Scenario is data driven scenario from excel
for example ;
I have 2 column; First column is full that from my data
rezno
Column B
resno 1
resno 2
*** Settings ***
...
-1
votes
1
answer
2k
views
Getting as "Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null."
I am trying to run a page object methods by cucumber. I am getting error out with driver null NPE errpr. Could you please help. I created Page Object Model file. A feature file describing scenario ...
0
votes
1
answer
400
views
Robot Framework - DataDriver - Select random data from a row within a .csv
I have a spreadsheet with about 3k rows I am trying to select data from (row specific) to enter in data for a form.
Currently my code is repeating the test for all rows in the CSV how can I select ...
0
votes
0
answers
60
views
I am writing automation script on one website and login credentials are fetching from excel file and getting this error
Error which I am getting
[ ERROR ] [ DataDriver ] Error in robot file:
File "C:\Users\KARAN\PycharmProjects\OpencartFF\Testcases\RunOC.robot", line 0
[ ERROR ] In source file:
File "C:\...
0
votes
0
answers
119
views
Some DataProvider public java.lang.Object[][] com.qa.tests.RegisterTest.getHXTestData(java.lang.String) parameters unresolved
I am getting following issue while getting data from excel for my Register test class. i am following a data driven approach with POM .
Console error:
Code i have written:
0
votes
0
answers
666
views
Variables not detected by test template with Robot Framework
I've been experimenting with Data-Driven style in Robot Framework, and I found out that it struggles a bit when using variables to fix an argument. I'll explain better with an example.
From the Robot ...
0
votes
0
answers
448
views
Numeric value read as decimal during data-driven testing in Selenium
I am trying to fetch test data from the excel sheet but it reads the integer value as decimal. Every integer value comes up with a decimal followed by zero.
I have used apache poi for data driven ...
0
votes
0
answers
72
views
Build failure in data driven framework while using Jenkins pipeline
**Jenkins pipeline build is failing because of following error. I have added dependencies and plugins but still error is not going while using mvn test command in the pipeline.
The same code is ...
0
votes
2
answers
287
views
Show a test in Nunit test playlist only if it is intended to run
I want to setup my framework in such a way that - A test is listed in Nunit test playlist (TestExplorer) only if it is set to run else don't show it in the list at all.
My plan - I will have an ...
1
vote
0
answers
1k
views
How to execute multiple test cases in one test suite with data driven tests using Robot Framework
I have set of Test cases (say 10) which I would like to execute against different URLs (say 50).
I have defined a CSV file containing the 50 URLs
My current solution is using DataDriver Library and ...
1
vote
0
answers
165
views
Better way to implement dynamic datetime when reading a file in Karate
* def now = "2022-03-21 04:30:01"
* def data = karate.jsonPath(read("data.csv"),'$[?(@.TC_ID=="'+TC_ID+'")]')
Records in csv file
|TC_ID |DATA ...
1
vote
0
answers
51
views
Not able to run the suite while keyword is called in keyword file
I am trying to read data from excel file and run my test suite
While I have my keyword in *** Keywords *** section in test suite file, it is working fine
While I have my keyword defined in separate ...
1
vote
0
answers
28
views
API testing using karate framework Data driven testing [duplicate]
Currently our project is using Karate Framework for API test automation. So we have a scenario where we need to use the concept of Data driven testing i.e we need to test automate an API where we send ...
-3
votes
1
answer
232
views
Issue while parsing JSON file in my XCUITest
JSON file : "credentials"
[
{
"name" : Tom Harry
"email" : [email protected]
"password" : tomharry123
},
{
&...
0
votes
1
answer
2k
views
Selecting dropdown values using Excel(OpenPyXl) - Selenium-Python
I am having a web application which is having multiple dropdowns. For inputting the values for the other text fields, I am reading the data from excel to comply with data driven testing. But I want to ...
1
vote
1
answer
522
views
Test execution gets stopped after an assertion error in pytest With Fixtures
I am new to Python ,
For the data driven testing, if there is 10tests , and the assertion fails [ AssertionError. ] for 4th test , then the rest of the 6 data sets are not considered for ...
-1
votes
1
answer
62
views
OledbConnection Invalid Arguments
I try to read Excel file in Selenium Webdriver C# but got Invalid Arguments at connection.Open() . What am I wrong?
using System.Configuration;
using System.Data.OleDb;
using System.Linq;
namespace ...
0
votes
1
answer
4k
views
ROBOT FRAMEWORK: How to make test teardown execute only if test case fails?
I could use the "TEST TEARDOWN" keyword in the header but this gets executed after each test case. Is there any way I can do in the code so that it only executes if the test case fails and ...
1
vote
1
answer
3k
views
Is there a way to query a csv file in Karate?
I am looking for a similar functionality like Fillo Excel API where we can do CRUD operations in an excel file using query like statements.
A select statement in a csv file is a great addition to the ...
1
vote
1
answer
2k
views
DataDriver error while running the script
I am getting below error while running the script, please help me to solve the issue -
ERROR ] [ DataDriver ] Error in robot file: File
"C:'filepath'.robot", line 0 [ ERROR ] In source ...
1
vote
1
answer
6k
views
I want to get orderID from API response using selenium python
I want to get the order ID from the API response. When I click on the Create Order button it will send a POST API request and return the unique ID that I want.
This is my order creation code.
from ...
3
votes
3
answers
10k
views
How to implement Data Driven methods in playwright using playwright/test typescript?
How to implement Data Driven methods in playwright using playwright/test typescript?
How do you get external data(excel or csv) into script and drive multiple iterations with different data sets?
0
votes
0
answers
188
views
Returning wrong data from Excel while reading data using openpyxl
I have created an excel file for managing data for my test. When the script is run, it will create a patient, and write the patient name and last name into an excel file.
Then I have used that patient ...
1
vote
1
answer
1k
views
How to copy data from excel file and paste into card number textbox in selenium python
I want to copy data from an excel file and paste it into the card number field. card number field does not allow to enter text using the keyboard. it only allows past value.
Is there any way to copy ...
0
votes
1
answer
79
views
User will get the dialog when the user first time login to the portal. and i want to check terms & condition checkbox only first time
I am working on one project. and in this project, I have created an account from the master portal. and set a password for it. when users first-time log in to the portal they will get a dialog for ...
0
votes
1
answer
1k
views
Selenium python not read data from excel after i add some new login data into the excel file
I am working on one project to do automation using selenium python. everything is working fine, But I have added one new python file and added one URL, login ID, and password into the excel sheet. ...
2
votes
0
answers
498
views
Count amount of (sub) tests run in python unittest test case
For a repetitive unit test, I have several test cases in a Yaml-File (resources/test_cases.yml), which looks like this:
scenario_1:
test_cases:
expected:
- 1
- 1
- 1
- 1
...
0
votes
1
answer
2k
views
Cypress Data Driven Testing with Excel
I was following this tutorial to read testing data from Excel files with Cypress.
The tutorial is wonderful and fully explains everything. There is a git archive with the code too.
The error that I am ...
0
votes
1
answer
621
views
For data driven test using robotframework, is it possible to have more than one data driver (using more than one datasheet)?
I'm currently doing a data-driven test. I created a test template that will use data from one excel file(specific sheet) for the input data. Is it possible that I import the data from more than one ...
1
vote
1
answer
417
views
I have to run all the tests in a suite with one login data from excel file then logout and pick other login data and run the same tests
I'm using Java selenium in TestNg and Apache POI for excel read. The DataProvider method is only for tests level so the login test repeats 2 times and then its moving to next tc. what can i do to ...
1
vote
0
answers
713
views
webdriverio: read and write data
How can we implement data driven approach in webdriverIO?
In selenium we can define properties file or write data to Excel.
For example, if I need to store date in a variable and implement the rest of ...
1
vote
1
answer
261
views
Karate: combine data driven with request in external file? [duplicate]
I am looking for a way to use data driven in combination with an external request file.
So my feature file looks like this:
Feature: EPOS UNIT test - GetSpendingLimit
Background:
* url 'http://...
1
vote
1
answer
483
views
Csv data pass Test method
I try to pass CSV data to my test method.
This is my code: CSV file has 3 columns:
TestNumber
email
FirstName
UserData.java
public class UserData {
private String TestNumber;
private String ...
1
vote
1
answer
616
views
Data Driven - How can I use selective args/params as part of parameterize in Python?
I am looking to set up a data-driven approach for my python selenium project (there is none currently). Planning to have the data file as xlsx.
I use pytest in my project. Hence, I explored ddt, @data,...
2
votes
2
answers
3k
views
Pester: Use variables in -ForEach data driven tests with rich content
I write a module used for powershell-wrapping a commandline tool.
For my tests I had some variables defined in BeforeAll. Those vars should help in feeding the command with desired params and check ...
0
votes
1
answer
42
views
How to identify two error messages with different elements and write the data to excel in Data driven framework
I'm new to Selenium /Python, I have Login validation. when user try to login, if password is Invalid or expired it will display 2 error message with different location. data is coming from excel with ...