Questions tagged [parameterization]

157 questions
15
votes
1 answer

How to run parametrized job after another (without params)

I have a job in Jenkins which has 2 params. I want to run another plan, which has no params and from that plan, launch the existing plan as many times as required. The new plan needs to be scheduled to run each 15 minutes (will be done by Jenkins'…
user706058
  • 415
  • 3
  • 11
  • 23
8
votes
1 answer

Passing parameters to Verilog modules

I am in the process of writing some Verilog modules for an FPGA design. I looked around the internet to find out how I best parametrize my modules. I see two different methods occurring often. I included an example hereunder of the two different…
eavsteen
  • 142
  • 1
  • 1
  • 15
6
votes
3 answers

Is it possible parameterize a compiled Java XPath expression ala PreparedStatement style semantics?

Is it possible either with the stock JAX-P xpath expression engine or another compliant engine to compile an xpath expression that would allow for parametrization? I'm looking to see if is if there is an API that would allow a developer to set…
Dave G
  • 9,639
  • 36
  • 41
5
votes
1 answer

pytest two level of parametrization when one parameter is generated by the other one

I have a scenario where I have a parameter list. Each of this parameter can generate another parameter list and I want to paramererize my test based on both parameter. Something similar to what I is being done with for loop below but using…
saurabh baid
  • 1,819
  • 1
  • 14
  • 26
5
votes
2 answers

alpha and beta estimates for beta binomial and beta distributions

I am trying to fit my data to a beta-binomial distribution and estimate the alpha and beta shape parameters. For this distribution, the prior is taken from a beta distribution. Python does not have a fit function for beta-binomial but it does for…
user3266890
  • 465
  • 5
  • 15
5
votes
2 answers

Use of Beanshell Preprocessor for Parameterization in JMeter

I am trying to use beanshell preprocessor for parameterization in JMeter script.My JMeter script structure is as mentioned below. Test plan->Thread group->Transaction Controller->Requests.I want to know which procedure I should follow to dynamically…
5
votes
2 answers

SQL Server: Detect Non-Parameterized Queries

I have a client which has had programming performed by past developers. Their code has recently become suspect, and I'd like to know if they are using parameterized queries. I was hoping I could detect non-parameterized requests through SQL…
user1325179
  • 1,535
  • 2
  • 19
  • 29
4
votes
1 answer

Cleaner way to do pytest fixture parameterization based on command-line switch?

I've technically already solved the problem I was working on, but I can't help but feel like my solution is ugly: I've got a pytest suite that I can run in two modes: Local Mode (for developing tests; everything just runs on my dev box through…
4
votes
2 answers

SQL Forced parameterization recommendation from Azure

I am using Azure SQL database in my project and in which some same set of queries are being executed very frequently. Recently I received a performance recommendation saying - Non-Parameterized queries are causing performance issues. and are…
Jose Francis
  • 950
  • 13
  • 28
4
votes
2 answers

Generic object load function for scala

I'm starting on a Scala application which uses Hibernate (JPA) on the back end. In order to load an object, I use this line of code: val addr = s.load(classOf[Address], addr_id).asInstanceOf[Address]; Needless to say, that's a little painful. I…
Isaac Oates
  • 307
  • 3
  • 9
4
votes
1 answer

Forced Parameterization

What reasons would you NOT choose to enable forced parameterization over simple parameterization for ad-hoc queries in SQL Server? Is there a performance overhead? If so would it not be offset by the (possible) gains made by re-used query plans?
Brett Postin
  • 11,215
  • 10
  • 60
  • 95
3
votes
2 answers

Passing functions as a parameter in pytest

I need to pass function as arguments in pytest parametrization. and need to call those functions inside test function. Is there any way to do it without using eval? I have fixtures defined in conftest.py which returns object to classes(defined in…
suryadevi
  • 77
  • 3
3
votes
2 answers

Parameterize `runs-on` value for GitHub action

I have this GitHub workflow that I need to parameterize on which runners runs. So in the YAML file I tried: # ... jobs: process: name: Process runs-on: ${{ secrets.GH_RUNNER_TAG }} # ... However, I get this error: The workflow is not…
Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
3
votes
2 answers

Scala: How to make requirements of the type parametres of generic classes?

I'm creating some parameterized classes C[T] and I want to make some requirements of the characteristics of the type T to be able to be a parameter of my class. It would be simple if I just wanted to say that T inherited from traits or classes (as…
Bruna
  • 366
  • 2
  • 15
3
votes
1 answer

How can I parameterize a class with an object's type to get an instance of it in Scala?

I'd like to parameterize a class with the type of an object to make my code more generic. By doing this, I don't need an implementation for all objects that extend a certain trait. I have the following code that demonstrates my goal: abstract trait…
erip
  • 16,374
  • 11
  • 66
  • 121
1
2 3
10 11