running two scenario at same time with loadrunner - testing

Can we run two scenarios at same time with loadrunner?
E.g. Suppose there are 50 user and I have to generate script such that 25 user accessing login and order modules and other 25 user just browsing the site.
Is it possible to generate such scenario?

Running multiple scenarios at the same time (assuming standalone controller) is not possible on THE SAME controller at THE SAME time.
From your description of the problem I assume you are looking for multiple scripts (groups) running in the same scenario - if so then the answer is YES.
In the controller you add more Groups (scripts are called groups in controller) and define the number of vusers or % of total vusers (depending on scenario type & controller version) for the group. I have not seen any limit on the number of groups/scenario. I've never needed more than 15 groups in a single scenario thou ..

Rohit,
I have a direct question for you, are you using an evaluation license?
Generally you would just use a 50 user license with two groups of 25 users apiece. The only time I get this question for the past 15 years is when someone is trying to combine result sets for two 25 user evaluation license copies of a LoadRunner controller.

Rohit, you can create two seperate scripts - one for your login & other for browse site transactions. In controller scenario , you can select select by Group and add these two scripts in your groups and assign 25 vusers each to both.

Related

Summarize browsing records in specific URL for specific user into one record regarding date in SQL Server

I'm facing a problem in my report. The report calculates how many times a specific (company's applications) url's were viewed/opened ignoring user data.
What I need is for the query to count the times viewed regarding that every user might have not only opened the application but also browse in it (i.e. filter something, but it is still the same application), then the data shows that the same user in minutes or seconds difference opened the same application - every click/filtering/recompiling the page etc. makes a new entry record, which is misleading, because the report shows how many times the application was opened as an individual record. The applications (which are the same in every country) are used in different countries therefore the log data is in different servers.
There are 4 tables from different servers, which have log entry data of the applications (url's), and they have to be inserted into one with already summarizes log entry data.
A small piece of the one table with the data:
A small piece of the second table just to see that the only difference between tables is litintranet, wokintranet:
There you can see that for the LogApp IFP the same user browsed with difference of seconds. But it should have only one record (just for opening the app), but has 3 records because the user probably filtered something or refreshed the page etc.
I need a query that summarizes this information and enters the new summarized / reduced records into a new table. The new table will be used for reports as the correct data of records.
The output should look like this:
How can the summarizing be done?
Thank you for your help

Azure Dev-Ops Query based suite adds items 3 times

I am creating Test Plans using Query Based Suites and am getting multiple items.
Create a Query based suite with very simple rules -> Run Query
Let's say 6 items are returned. I select all 6 and click "Create Suite"
The Suite that is created has 18 items (each of the 6 items is copied 3 times)
Any ideas how I can get this to stop?
No no no, the issue is it adds it to a different configurations:
So in order to see 1 test instead of 3 you need to click right mouse button on the configuration and un-assign all configs that you don't need.
Where to adjust default settings I don't know :(

trick SQL to read data as true instead of false

I have searched everywhere online before asking this:
I'm self-teaching how to build a report that makes it easier for my co-workers. I wanted to pull a report for the clients that never attended. We use last_bill_svc_date, but the problem is I have been facing was that there is a certain visit type that is non-billable due to the client being a self-pay.
Is there a way for me to trick SQL into thinking that a visit type is true for a billable service date?
I'm using two different tables and I am hoping that is all I needed in order to pull a never attended report. I have 17 visit type ID number that I need it to be true for billable at all time.
I'm using Custom AD Hoc provided by Credible for Electronic Health Records "Query builder 2.0" is what I use.
Any help is greatly appreciated and I will clarify as best as I can. It is my goal to show the last billable service date to be null so I can count how many members that have not attended the centers yet.
EDIT
I'm not entirely sure how to show an example, but I'll do my best.
client_id first_name last_name last_bill_svc_date
--------------------------------------------------
1 A-firstname A-lastname Null
2 B-firstname B-lastname Null
3 C-firstname C-lastname Null
4 D-firstname D-lastname Null
5 E-firstname E-lastname Null
6 F-firstname F-lastname Null
7 G-firstname G-lastname Null
8 H-firstname H-lastname Null
9 I-firstname I-lastname Null
I actually was able to pull the exact record above, but it ignores the one with self-paying visit type.
I once used WHERE statement as in
Where (ClientVisit.visittype_id In ('514', '519', '527', '533', '509',
'500', '528', '540', '529', '511', '506', '513', '545', '530', '510', '512',
'507') And Clients.client_status = 'active')
The visit type is the one I wanted it to focus on, but it, unfortunately, focus on billable visit type and ignores the non-billable. I wanted to be able to force SQL to read the specific visit type to be billable no matter what. I struggle to figure out which column I need to gather info from since Credible's custom AD HOC has 11 pages worth of tables. As of now, I'm using two tables: Clients and ClientVisit
EDIT Part Two
Select Clients.client_id As client_id,
Clients.last_name,
Clients.first_name,
Clients.last_bill_svc_date
From Clients
Where Clients.client_id In (Select ClientVisit.client_id
From ClientVisit) And Clients.client_status = 'active'
This is the code I currently have on the list with a help of a friend. It showed a result of 47 members that have not attended to one of the centers. In the spreadsheet, I just showed BLANK result for last_bill_svc_date.
I did a report coming from "Advanced Search Report" that was provided in Credible where I select the encounter types that I know it is billable. While I know sticking with advanced search report is probably the best way to go. The reason for me to switching over to Export Tool where I can run the report from SQL Query Builder 2.0 because I will be able to have it showed the client's primary team only instead of doing it manually when I go through the Advanced Search Report.
The Result I want to see is as follows:
Client's first and last name,
Client's start date (So, we know how long member has been an active member and still haven't attended)
last billable service date (I'll filter it to be NULL),
Primary Team (Each client is only allowed to have one primary team, but they can be assigned to multiple teams).
I realized that visit id number 528 has a lot of self-pay, which forced the visit type to be non-billable in Credible. That's when I want to force it to read it as if ID '528' is billable even though it claims that it is non-billable.
Another reason for wanting to specify the visit type because we provide billable phone services where we can do outreach to clients. Clearly, that doesn't count as client's attendance to one of the centers.
It has to be something so simple to get it working the way I want to see. Otherwise, I'll have to accept and continue using Advanced Search Report feature.

Cross-project time-record filtering using Active Collab 5 API

For Active Collab team watching this tag.
I am working on a project that uses new Active Collab 5 API, I am having performance issue trying to run reports.
Example I try to build reports on date-range, and currently to achieve that I need to first run a call to get all projects.
Followed by a loop with this call:
API::get('/projects/'.$id.'/time-records/filtered-by-date?' . http_build_query(['from' => $from, 'to' => $to]))
However we have a large number of projects, in addition to high number of active projects we also need to filter Archived projects as well to get correct reports for billing.
Now I work with around 1500 projects in AC.
So I need to make 1500 API calls which takes a huge performance hit. Is there a way that you can possibly build something that would work along these lines.
API::get(/timerecords/filter-by-date);
with a possible passed parameter that will say (all, active, complited) project state.
Please let me know what you can do or if I have missed something in your documentation that already does this.
Thanks
What you need here is not a request that goes through all projects one by one, but a request that it tailored for cross-project reporting. Active Collab 5 has just the right API endpoint for that - /reports/run.
As an example, you can use this command to query time records and expenses from all active projects that were tracked today:
curl -H "X-Angie-AuthApiToken: YOUR-API-TOKEN" "http://your.activecollab.com/api/v1/reports/run?type=TrackingFilter&project_filter=active&tracked_on_filter=today"
Notice the route (/reports/run) and query arguments:
type - specify type of the report, in this case time and expense tracking report,
project_filter - specify project filter. Apart from active, other useful values of this filter are completed (for completed projects), selected_1,2,3,4 (selected projects with a list of project ID-s), client_1,2,3,4 (projects for clients with the given ID-s), category_1,2,3,4 (projects in categories with the given ID-s),
tracked_on_filter - filter by the date when records were tracked. To target a particular date use selected_date_YYYY-MM-DD and to target a date range use selected_range_YYYY-MM-DD:YYYY-MM-DD.
tracked_by_filter - filter by who tracked the time. It can have various values, like anybody, logged_user, selected_1,2,3.
To list only time records, set type_filter to time (or to expenses if you want only expenses to be listed).

How to fetch data for a news feed like system?

I have few tables as shown below
Polls
PollId Question Option
1 What 1
2 Why 4
Updates
UpdateId Text
1 Sleep
2 Play
Polls and updates are just two sample tables (In reality there are more tables like ,photos, videos,links etc). But when a user visit his home (like facebook new feed) he must be displayed with data relevant to him (no such data included in this example). ie I want to select data from all tables with less number of query executions. (ie, I want to present a mixture of datas, ie polls, photos, videos etc )
Currently, I'm fetching only ids and type (ie which table) from all of the tables and gather further data while iterating through this resultset. (ie from c# calling another SqlQuery) .
Is there a way to query the data from whole tables at once? (OUTER JOIN?, UNION?)
Or simply,
How can I select different type of entities at once in a single sql Query?
You could write your query so that you have one long select list for everything you want and it all comes back in one result set but I suspect that wouldn't work too well because you might have varying numbers of different types of items per user.
If you really must have it all in one hit then you can issue multiple queries in one go and get multiple result sets back. To handle this you can use an ADO.Net DataSet. See this SO example (but not the accepted answer - see Vikram Dibyal's answer as that gives a very basic overview of what I think you're asking for).
I won't copy and paste the stuff from the linked thread, just head over and take a look.