Load Testing in Visual Studio

AlexRichter
Member Posts: 4
in Testing
Hey Guys,
right now i'm playing around with the Load Testting Tool in Visual Studio.
You can get the repository from here:
https://github.com/NAVPERF
The given examples and all exisitng video Tutorials about this Topic show how to enter new Record in Card Pages (also with related Sub Pages) but i could not find anything which shows you how to insert a new record in a List Page like the Number Series for instance.
My Scenario is the following:
I want to create a new Load Test Number Series including a Number Series Line.
Thats my current code: (It runs but its not creating the record)
As im not really familiar with c# I hope that you can help me and give me some nice tipps.
Our long Term perspective is to create a bunch of common scenarios which represent a realsitic workload for our system and run performance tests constantly before any relase. To have valid Data its important to have consitent scenarios.
--> I mean something like this:
One user is creating new Vendors, another one is taking one out these Vendors and creates a Purchase Order with Items a third person just creates in that test.
Does someone have experience with this kind of tests?
Thank you,
Alex
right now i'm playing around with the Load Testting Tool in Visual Studio.
You can get the repository from here:
https://github.com/NAVPERF
The given examples and all exisitng video Tutorials about this Topic show how to enter new Record in Card Pages (also with related Sub Pages) but i could not find anything which shows you how to insert a new record in a List Page like the Number Series for instance.
My Scenario is the following:
I want to create a new Load Test Number Series including a Number Series Line.
Thats my current code: (It runs but its not creating the record)
[TestMethod] public void InitializeNoSeries() { TestScenario.Run(OrderProcessorUserContextManager, TestContext, CreateLoadTestNumberSeries); } public void CreateLoadTestNumberSeries(UserContext userContext) { TestScenario.RunPageAction(TestContext, userContext, NumberSeriesListPageId, form => { var newNumberSeriesListPage = form.Repeater(); //Create No. Series newNumberSeriesListPage.Control("Code").Activate(); TestScenario.SaveValueWithDelay(newNumberSeriesListPage.Control("Code"), "LOADTEST"); newNumberSeriesListPage.Control("Description").Activate(); TestScenario.SaveValueWithDelay(newNumberSeriesListPage.Control("Description"), "General No.Series for all LoadTest Data"); //Create No. Series Lines //var newNumberSeriesLinesPage = newNumberSeriesListPage.Action("Lines").InvokeCatchForm(); //TestScenario.SaveValueWithDelay(newNumberSeriesLinesPage.Control("Starting No."), "LT001_"); //userContext.ValidateForm(newNumberSeriesLinesPage); //Save Values and write to Test Console //TestContext.WriteLine("Created No. Series Code {0}", "LOADTEST"); //TestContext.WriteLine("Created No. Series Lines Starting No. {0}", "LT001_"); //Close both Pages //TestScenario.ClosePage(TestContext, userContext, newNumberSeriesLinesPage); //TestScenario.ClosePage(TestContext, userContext, newNumberSeriesListPage); } ); }
As im not really familiar with c# I hope that you can help me and give me some nice tipps.
Our long Term perspective is to create a bunch of common scenarios which represent a realsitic workload for our system and run performance tests constantly before any relase. To have valid Data its important to have consitent scenarios.
--> I mean something like this:
One user is creating new Vendors, another one is taking one out these Vendors and creates a Purchase Order with Items a third person just creates in that test.
Does someone have experience with this kind of tests?
Thank you,
Alex
1
Comments
-
I just used the demo to try how it works. You can try to ask the author directly, @wortho ...1
-
I've made a modification to number series to make it user specific and there is no locking between users.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions