Questions tagged [parameterization]

157 questions
1
vote
1 answer

How to do Parameterisation/Data driven testing using Selenium in Python

I'm learning automation and I have a few set of login IDs and I'm trying to login and logout in amazon.com website and with a set of login IDs and password which are in a excel file. Issue what I'm facing is to figure out how to hover over the…
1
vote
1 answer

Setting comparator on instantiation for parametrized Linked List

I'm working on a sorted Linked List homework and confused about setting up a comparator. I've written a linked list class that is parametrized to accept any class. The linked list works fine but I'm confused about how to set a comparator for the…
zeus_masta_funk
  • 1,388
  • 2
  • 11
  • 34
1
vote
1 answer

R: How to (efficiently) parameterize and draw (conditional) functions?

I have a data.frame were each row contains the parameter values for a function (i.e. one function per row). I would like to draw these functions. The functions are conditional, and should only be drawn for certain values, and have kinks (due to…
bonna
  • 1,575
  • 2
  • 17
  • 31
1
vote
1 answer

VBScript building a parameterized query

Is it possible to build a VBscript parameterized query without knowing the names, types or number of arguments beforehand? I'm trying to do this: set cmd = Server.CreateObject("ADODB.Command") cmd.ActiveConnection = cn cmd.commandText =…
marekc
  • 147
  • 1
  • 4
  • 11
1
vote
2 answers

type parameterization of Scala

Take a concrete method for instance, def df(f: Float => Float, dt: Float) = (t: Float) => f(t + dt) - f(t) It can be compiled and works. However, when I tried to define it in a generic way, def df[T](f: T => T, dt: T) = (t: T) => f(t + dt) -…
xiaoshunc
  • 13
  • 2
1
vote
1 answer

pytest parameterize decorator not working with **kwargs

In my testing code, I have the following: @pytest.mark.parametrize(("title", "description", 'site'), [ ("abc", "this is a proper description","minecraft.net"), ("proper…
bigblind
  • 12,539
  • 14
  • 68
  • 123
1
vote
2 answers

Scala parameterization of my array assumes a String?

I've read up a little on Manifests and the erasure-avoidance techniques required to allow Scala to do things like "new Array[Array[T]]", but I'm a little stumped with this one.... I've got a method that sort of tabulates up a bunch of rows in an…
user311121
  • 309
  • 1
  • 4
  • 14
0
votes
3 answers

Java passing generic class with parameterzied enum as parameter to another generic object

I am trying to implement parameterized class in Java with enum as a type parameter. Everything works fine, except, if you look at the code below, there is that anonymous class Car.Creator with parameter K. But of course, instead of K, there should…
so_user
  • 43
  • 5
0
votes
0 answers

Pytest - execute test case only if previous test case fails

I have two test cases test_A(a,b,c) and test_B(a,b,c) in a python file. I use parameterization ( metafunc.parametrize("a,b,c",[(a1,a2,a3),....(y1,y2,y3)]) to pass 6 set of parameters to these tests. The parameters are like…
0
votes
1 answer

Bandit vulnerability on 'Drop View '

I am not sure why bandit is notifying the below as 'Detected possible formatted SQL query. Use parameterized queries instead.': conn.execute(f"DROP VIEW {view_name};") Is there a way to parameterize the view_name? or concatenation is the only…
0
votes
2 answers

VB parameterization using string literals instead of assigning Params

I am attempting to parameterize my query, but I can see with the message box, the actual query is just using string literals @st & @sn instead of the values passed in. I really can't seem to figure out what I'm doing wrong. Protected Function…
0
votes
0 answers

Is there any way to read data from the same rows in 2 different files in parameterization in LoadRunner?

I have 2 data files, one with login credentials and other with some other data. What I want to do is when a Vuser starts take login credentials from the first row and then take the data for the next operation also from the first row of that…
0
votes
0 answers

Type Compatibility Constraint and Unchecked Assignment relation in Java

Consider the following clause from JLS : 18.2.2 the following clause states that: Otherwise, if T is a parameterized type of the form G, and there exists no type of the form G<...> that is a supertype of S, but the raw type G is a…
theutonium.18
  • 483
  • 2
  • 7
0
votes
1 answer

How to achieve parameterization similar to CsvDataSetConfig using UserDefinedVariables Control In JMeter?

In JMeter, I need to parameterize sequence of inter-linked values using "UserDefinedVariables" control. I am able to achieve the same with "CSVDataSetConfig", but I need to use "UserDefinedVariables" as I have only two rows of input data which I am…
Yasir
  • 81
  • 1
  • 3
  • 20
0
votes
1 answer

Can we parameterize Thread schedule details like Start Thread count, Initial delay etc. in Ultimate thread Group using csv/txt files?

We are trying to parameterize Thread schedule details like Start Thread count, Initial delay etc. Since we have 50+ thread groups and handling them has become an issue. Would like to know if Jmeter has any unknown feature for this or a workaround to…