Regroup 3 test plan into 1 test - performance-testing

I use HP Performance Center & I've 3 tests plan that I want to regroup into a forth.
I've Map-Prod1, Map-Prod2 & Map-Prod3 with several scripts & I want a new test plan with ALL script that are in these 3 test plan.
I didn't find a solution, except recreate a new one & reselect ALL my scripts.
There is reallay no solution to do that without recreate one ?
Thanks.
Yacine

Unfortunately, I've to create a new one...

Related

Conditional Statements for terraform modules

We have two projects lets say A & B and three modules X,Y,Z (modules/X,Y,Z) for these two projects separately and do changes regularly & changes will be deployed to those A & B projects. Every time for a change we need to add in both project modules respective folders and its hard for us to track those changes.
Project A -> (modules/X,Y,Z)
Project B -> (modules/X,Y,Z)
We have decided to move identical modules to common folder and for different modules need to write conditional statements to work for respective projects.
Project A -> (modules/Z)
Project B -> (modules/Z)
(common/X,Y)
X & Y modules we have moved to common folder as both are identical and works for both projects whereas Z module has different changes which will not work in this case. Is there any option to write conditional statements to pick specific lines of code to get deployed for A & B projects.
As per my knowledge, terraform does not support direct if-else statements. Instead using 'count' we can achieve similar results.
If we set count = 1 for a particular resource , we will get one copy of that resource
If we set count = 0, No resources will get created.
In terraform, conditional expression can be written in below format.
condition ? true_val : false_val
Terraform just checks boolean condition in CONDITION and if value is true it will return 'TRUE_VAL' else it will return 'FALSE_VAL'
I guess when you are creating resources using module Z , you can use count + boolean condition expression to get expected results.
References:
https://medium.com/swlh/terraform-how-to-use-conditionals-for-dynamic-resources-creation-6a191e041857
https://www.terraform.io/language/expressions/conditionals

Taskwarrior - How not to display the age of a task

I am using taskwarrior together with conky and to make the format look nicer, I want to modify, what information is actually given by taskwarrior.
In particular, I do not want it to display the "Age" column of a task.
Right now it looks like this:
ID Age Due Description Urg
1 33min 1d Do Stuff 8.33
but I want it to look more like this:
ID Due Description Urg
1 1d Do Stuff 8.33
Is there an easy way of doing this?
Thanks in advance!
Add the following lines to the file ~/.taskrc:
report.report1.description=Report without age attribute
report.report1.columns=id,due,description,urgency
Then you can run task report1 to view the report.
I prefer to edit the default reports. With this command:
task show report
You will get the configuration of all the reports. The default report of task command is report.next, so you can put this in your .taskrc without entry.age:
report.next.columns=id,start.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency
report.next.labels=ID,Active,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg
Now the task command will show the next report without the Age.

azure logic apps with azure cost report send mail

I tried logic apps with sending a file over mail every time a blob is written in the container and it works fine using the synthax below .
Now my problem is that Azure cost report does create a directory that his the following structure :
/BlobContainer/BlobDirectoryFromAzureCostReportExport/DirectoryWithNameOfTheReport/
So far nothing fancy, we could just leave it that way , but my problem that the cost analysis export creates a directory with this format :
YYYYMM01-YYYYMM30
for instance , i have now :
https://ccppdhbstolog.blob.core.windows.net/ccpphbrgdailycostcont/ccpphbrgdailycostdir/ccpphbrgdailycostreport/20200901-20200930/ccpphbrgdailycostreport_30133934-c624-4020-96ac-cf36d9f2e6dc.csv
I can select logic Apps to monitor this path :
/ccppdhbstolog.blob.core.windows.net/ccpphbrgdailycostcont/ccpphbrgdailycostdir/ccpphbrgdailycostreport/20200901-20200930/
But next month what will happen ? ( I would need to reconfigure... ) or, maybe I can write this YYYYMMDD-YYYYMMDD for the coming month. But I do not now the synthax, nor if this is going to work if there 31 days or 28 (febuary ) days in the month ..
I need to send report automatically, any clue how I can make this work ?

How can I to restrict the execution of an imacros script between some hours?

I have an imaros script that runs each 4 minutes (using auto clicker)... but I need to it doesn't run between 23:30 to 00:30... so I need to do something like:
If (date is <23:30 and date is > 00:30) then run!!
Is this possible?
many thanks!
This is possible with JavaScript. You can create current time in JS and compare it with time between the two times you named. It's a little complicated to make. Msg me on private messages and we can work things out.

How to run cucumber scenario's based on Test Case ID that is appended with the Scenario name?

I wanted to run Cucumber Feature file based on the Test case ID that scanerio name contains.
I know we can use #CucumberOptions 'features' tag and specify the line number to execute e.g "src/test/resources/Folder/myfile.feature:7:12"
This will run scenarios at line 7 and 12. But i wanted to run based on the TC ID.
Below is the feature file code
#Run
Feature: Login Functionality
Scenario: First Test Case(TC.No:1)
Given I perform action 1
Scenario: Second Test Case(TC.No:2)
Given I perform action 2
Scenario: Third Test Case(TC.No:3)
Given I perform action 3
Scenario: Fourth Test Case(TC.No:4)
Given I perform action 4
Scenario: Fifth Test Case(TC.No:5)
Given I perform action 5
All the scenario's are in a single feature.
For the feature file code above i wanted some way through which i can execute based on TC Id. E.g I only want to execute TC1,TC2 and TC5( TC id's picked up from scenario names).
There is a property file that contains the TC Id's to be executed. My code should read the file and then execute only those TC id's.
This can help me in reducing the number of automation TC's to be run.
Is it possible?
You can use the name property of #CucumberOptions or use the '-n' option if you are using the cli option. It also supports regular expressions.
To run TC.No:1 and TC.No:4 use something like this
#CucumberOptions(name = { "TC.No:1|TC.No:4" })
or
#CucumberOptions(name = { "TC.No:1","TC.No:4" })
You can get more details at this link.
As you are reading the ids from a file, the second option is the best. Use the cucumber.api.cli.Main class main() method to execute the features. You can create the options dynamically. Refer to this post.
CLI reference docs.
Not familiar with cucumber-jvm.
But, here is the general logic which should work (based on my ruby Cucumber knowledge)
In the hook, you can write the logic to under before method to get the scenario name scenario.name and then extract the TC.No. Compare the TC.No and skip if it's not part of your list.
Here is the link which will give information how to skip the scenario (use this class in the before method)
https://junit.org/junit4/javadoc/4.12/org/junit/AssumptionViolatedException.html
However, the best practice is to use the tags, it would have been easy if you had #TCId-xx tag. Still you can write a simple program that will scan all the feature files and update the scenarios with the tag based on the TC.No in the scenario name.

Resources