compose安装单个扩展

This article shows corporations that have more than one application how to increase the ROI of their automated tests by having test frameworks with highly readable DSLs and reusable components. Companies with only one application still benefit from using the test frameworks suggested here for various reasons that we are going to explore.

本文向拥有多个应用程序的公司展示了如何通过具有高度可读的DSL和可重用组件的测试框架来提高自动化测试的ROI。 由于我们将要探讨的各种原因,只有一个应用程序的公司仍然可以从此处建议的测试框架中受益。

Note: Automated tests here refer mostly to UI automated tests for web and mobile apps. However, we will also look at a few examples of API tests.

注意:此处的自动化测试主要是指针对Web和移动应用程序的UI自动化测试。 但是,我们还将查看一些API测试示例。

问题 (The Problem)

In general, there are two types of reactions to automated testing. The first reaction is that it is difficult, takes too much time, devs can churn out features at a faster rate than testers can automate the tests, and we do not have the skills or the resources to do it, so let’s continue with manual testing for now. The second reaction is that it is easy, so let’s not spend too many resources on it. We can always catch up in the next sprint — and they never do.

通常,对自动化测试有两种类型的React。 第一个React是,这很困难,需要花费太多时间,开发人员可以以比测试人员可以自动化测试的速度更快地推出功能,而且我们没有技能或资源来进行测试,因此让我们继续进行手动测试目前。 第二个React是它很容易,所以我们不要在它上花费太多资源。 我们总是可以赶上下一个冲刺,而他们永远都做不到。

Well, here’s the hard truth: It is not easy to write and maintain automated tests, but you can make it easier and faster by using the right approach.

好吧,这是一个硬道理:编写和维护自动化测试并不容易,但是您可以通过使用正确的方法使其变得更容易,更快。

The first reason why automated testing is not as easy as many think it would be is that the UI nowadays is so much richer compared to a decade ago. Not only are the visuals getting more appealing, but the interactions — especially on mobile devices — are getting more complex. Suddenly, we are no longer dealing with just a single swipe but simultaneous multiple swipes to browse through the lists of movies on the Amazon Prime Video mobile app. Not to mention that in the pursuit of a richer lifestyle, a gamut of wearable IoT devices is born.

自动化测试并不像很多人想象的那么容易的第一个原因是,与十年前相比,如今的UI更加丰富。 不仅视觉效果越来越吸引人,而且交互(尤其是在移动设备上)的交互也越来越复杂。 突然,我们不再只处理一次滑动,而是同时进行多次滑动来浏览Amazon Prime Video移动应用程序上的电影列表。 更不用说,在追求更丰富的生活方式时,可穿戴式物联网设备便应运而生。

The second reason automated testing is notorious for taking a lot of time and effort is that the Agile landscape means tests often require changes in a short period of time. Over the years, I have seen a lot of automation code that struggled against this. Fast-paced release cycles require a smarter test approach. It is not just about writing the tests but also about easy-to-change code ready to reflect requirement changes on the fly, and yet with confidence that the code change will not break any tests.

自动化测试以花费大量时间和精力而臭名昭著的第二个原因是,敏捷环境意味着测试通常需要在短时间内进行更改。 多年以来,我已经看到许多自动化代码为此而苦苦挣扎。 快节奏的发布周期需要更智能的测试方法。 这不仅涉及编写测试,而且还涉及易于更改的代码,这些代码随时可以反映需求的变化,并且充满信心地认为代码更改不会破坏任何测试。

解决方案 (The Solution)

For testing to catch up to development, the QA team should take a leaf out of the dev team’s book. There is often a seed project that the developers can use to build an app right away. For instance, the seed project may contain a sample of an Angular project plus access to a wealth of Angular components from a central repository that your firm may have introduced to keep the look and feel consistent across all the apps developed in the firm. Learning by example, there should also be a seed project for automated tests — a test framework that imports a library consisting of components interacting with the UI components.

为了进行测试以赶上开发的步伐,质量检查小组应该从开发小组的书中删除。 通常有一个种子项目,开发人员可以立即使用它们来构建应用程序。 例如,种子项目可能包含一个Angular项目的示例,并可以从您的公司可能引入的中央存储库访问大量Angular组件,以使公司中开发的所有应用程序的外观保持一致。 通过示例学习,还应该有一个用于自动化测试的种子项目-一个测试框架,该框架导入由与UI组件交互的组件组成的库。

One such test component is highlighting a certain time period in a chart, which is certainly not something that can be done in a matter of one or two hours and guaranteed to be bug-free. Considering that it is no easy feat, we certainly do not want to repeat the effort in another project when both projects use the same graphical component — hence the goal of this article: free the testers from automating the app and let them focus on the real testing work.

这样的测试组件之一就是突出显示图表中的某个时间段,这肯定不是一两个小时就能完成的事情,并且保证没有错误。 考虑到这并非易事,当两个项目使用相同的图形组件时,我们当然不希望在另一个项目中重复工作—因此,本文的目标是:使测试人员从使应用程序自动化的过程中解放出来,让他们专注于真正的应用程序。测试工作。

Another reason for using a seed test project is that there is really no merit in having many test automation frameworks with varying implementations in the firm, unlike the concept of microservices that gives the dev team flexibility to choose the technology and language of choice best suited for the type of work it is doing. In fact, giving each squad or tribe the flexibility to use their own test framework of choice means loss of time because some may choose to write the framework from scratch, confusing test frameworks because each has his or her own interpretation of Page Object, and there is also the inability to share the test code.

使用种子测试项目的另一个原因是,在公司中拥有许多具有不同实现方式的测试自动化框架真的没有好处,这与微服务的概念不同,微服务的概念使开发团队可以灵活地选择最适合的技术和语言。它正在执行的工作类型。 实际上,给每个班组或部落一个灵活性来使用他们自己选择的测试框架意味着浪费时间,因为有些人可能选择从头开始编写框架,而使测试框架混乱,因为每个人对页面对象都有自己的解释,因此也无法共享测试代码。

This article suggests that the firm keeps to only one or two test frameworks, these frameworks employ the Screenplay Pattern approach, and teams collaborate to produce reusable test components.

本文建议该公司仅保留一个或两个测试框架,这些框架采用“剧本模式”方法,并且团队协作以产生可重用的测试组件。

剧本模式 (The Screenplay Pattern)

There are three compelling reasons to use the Screenplay Pattern to scale:

使用“剧本模式”进行缩放有三个令人信服的理由:

  1. It enables a highly readable DSL to be written, as we will see in the next section. Once the DSL is written, anyone (devs, manual testers, BAs from any squad) would be able to use it with a modest learning curve to form tests thanks to the easy-to-understand and articulate way to express the tests. This, in turn, speeds up the test writing process.

    正如我们将在下一节中看到的那样,它使能够编写高度可读的DSL。 一旦编写了DSL,由于易于理解且表达清楚的方式来表达测试,因此任何人(开发人员,手动测试人员,任何班级的BA)都可以使用它以适度的学习曲线来形成测试。 反过来,这可以加快测试编写过程。
  2. It is based on the concepts of actors, tasks, actions, and questions. Tests are formed by describing the tasks and questions from the viewpoint of the actors (users of the app) rather than pages or components. Each task is made up of actions (or even tasks). For instance, a search for flights is a task on a travel website and entering the destination is one of the actions for the task. The question we want answered is the total matching flights returned. Having them written this way means the action (“enter a value into the input field”) and the question (“the total items returned in the list”) can be reused in a shared library because they are solution-based interactions commonly found in most apps. Even business-based interactions can be shared across projects. For instance, someone in another department in your firm may have written the test code for adding, deleting, and retrieving an event from Google Calendar via API calls. If your app relies on the same interactions, then you could just reuse the shared task without taking a peek at the Google API documentation. Or perhaps your team’s app relies on the customer data created by another team’s app. In the same way, you could just reuse the Screenplay task shared by the other team to create the test data prior to running your test.

    它基于参与者,任务,动作和问题的概念。 通过从参与者(应用程序的用户)而不是页面或组件的角度描述任务和问题来形成测试。 每个任务由动作(甚至任务)组成。 例如,搜索航班是旅行网站上的任务,而输入目的地是该任务的动作之一。 我们要回答的问题是返回的匹配航班总数。 以这种方式编写它们意味着操作(“在输入字段中输入值”)和问题(“列表中返回的项目总数”)可以在共享库中重用,因为它们是基于解决方案的交互,通常在大多数应用。 甚至基于业务的交互 可以在项目之间共享。 例如,您公司另一部门的某人可能已经编写了用于通过API调用从Google日历添加,删除和检索事件的测试代码。 如果您的应用程序依赖于相同的交互,那么您可以重用共享任务,而无需查看Google API文档。 或者,您团队的应用程序依赖于另一个团队的应用程序创建的客户数据。 同样,您可以在运行测试之前重用其他团队共享的Screenplay任务来创建测试数据。

  3. At its core, the Screenplay Pattern is the application of the SOLID design principles. Desirable traits like separation of concerns, high cohesion, and loose coupling resulting from the principles pave the way for a clean, maintainable, and malleable test code.

    剧本模式的核心是SOLID设计原则的应用。 理想的特征,如关注点分离,高内聚性和由原理产生的松散耦合,为编写干净,可维护和可延展的测试代码铺平了道路。

为什么不页面对象? (Why Not Page Object?)

A seasoned tester would find that Page Object falls short of a scalable and maintainable test suite. Many tried to overcome the weaknesses by employing variations of Page Object. In my opinion, the best variation so far is breaking the UI into components instead of pages and introducing a layer of abstraction between the UI and the tests. John Smart’s article on how to write Page Objects that “suck less” further suggests how to improve the approach by storing only the locators in the Page Objects, keeping the Page Objects free of business logic, and categorising the abstraction layer into actions and questions. Next, apply the SOLID principles and use objects rather than methods to represent the actions and questions, and we naturally arrive at the Screenplay Pattern.

经验丰富的测试人员会发现Page Object缺少可伸缩且可维护的测试套件。 许多人试图通过使用Page Object的变体来克服这些缺点。 我认为,到目前为止最好的变化是将UI分解为组件而不是页面,并在UI和测试之间引入了抽象层。 John Smart的有关如何编写“吸气更少”的页面对象的文章进一步建议了如何通过仅将定位符存储在页面对象中,使页面对象不受业务逻辑影响以及将抽象层归类为动作和问题来改进该方法。 接下来,应用SOLID原理并使用对象而不是方法来表示动作和问题,我们自然会得出编剧模式。

Head to the Resources section down below to read articles that explain why you would want to employ these techniques. After reading the articles, you should be convinced of the benefits of the techniques mentioned.

前往下方的“资源”部分以阅读文章,这些文章解释了为什么要使用这些技术。 阅读文章之后,您应该确信所提到的技术的好处。

Perhaps you are already using Page Object and thinking of just using some of the techniques above without fully resorting to using the Screenplay Pattern. I’ll show you why you would still want to consider rewriting your whole test framework or switch over to a test framework that supports the Screenplay Pattern.

也许您已经在使用Page Object,并考虑仅使用上述某些技术,而没有完全采用Screenplay Pattern。 我将向您展示为什么您仍要考虑重写整个测试框架或切换到支持“剧本模式”的测试框架。

We have established in the previous section that a fluent DSL is highly attractive to meet our goal of a scalable test framework. Let’s take Cheapflights or any travel website as an example. Say a user wants to fly from London to Bali on the 1st of October 2020 and return on the 31st of October 2020. In the Page Object world, the action “search flights" would be represented by the ensuing method. This is the method that contains the implementation of the interactions with the website that you would call from your step library. We are not going to go into why you shouldn’t do the implementation in the step library itself.

在上一节中,我们已经证明,流利的DSL对于满足我们可扩展的测试框架的目标非常有吸引力。 让我们以Cheapflights或任何旅游网站为例。 假设用户想在2020年10月1日从伦敦飞往巴厘岛,然后在2020年10月31日返回。在页面对象世界中,“搜索​​飞行”动作将由随后的方法表示。包含您将要从步骤库调用的与网站的交互的实现,我们将不讨论为什么不应该在步骤库本身中进行实现。

searchFlights("London", "Bali", "1 October 2020", "31 October 2020");

In an attempt to make this read better, you might use the Builder Pattern so that calling the method now looks like this:

为了使阅读效果更好,您可以使用“构建器模式”,以便现在调用该方法如下所示:

Flight flight = Flight.builder()
.from("London")
.to("Bali")
.departOn("1 October 2020")
.returnOn("31 October 2020")
.build();searchFlights(flight);

Now that looks better, but the Screenplay Pattern can make it even more elegant. This is possible because the action “search flights" is an object:

现在看起来更好了,但是“剧本模式”可以使它更加优雅。 这是可能的,因为“搜索飞行”操作是一个对象:

SearchFlights.from("London")
.to("Bali")
.departOn("1 October 2020")
.returnOn("31 October 2020");

Let’s take another example on the website. After making the basic search, users are presented with the search results and options to filter the results. Some of the options are in the form of a slider. You might create a Page Object for the slider component that takes in the data attribute of the slider container as a parameter to differentiate the sliders on the results page. Using the Builder Pattern for the stopover duration slider, the code looks like this:

让我们在网站上再举一个例子。 进行基本搜索后,将向用户显示搜索结果和用于过滤结果的选项。 一些选项采用滑块的形式。 您可以为滑块组件创建一个Page对象,该对象将滑块容器的data属性作为参数来区分结果页面上的滑块。 使用“构建器模式”作为中途停留时间滑块,代码如下所示:

Slider stopoverDurationSlider = Slider.builder()
.id(stopoverDurationSliderId)
.min(30)
.max(120)
.build();
slide(stopoverDurationSlider);

Compare that with the following if you were to use the Screenplay Pattern. Again, notice how the latter looks more fluent and natural:

如果要使用编剧模式,请与以下内容进行比较。 再次注意,后者看起来更流畅和自然:

Slide.toMin(30)
 .andToMax(120)
 .the(stopoverDurationSlider)

There you have it. The solid reasons not to use Page Object.

你有它。 坚实的理由不使用Page Object。

使用哪种测试框架 (Which Test Framework to Use)

If you are sold on using the Screenplay Pattern but do not know how or where to begin, fret not because there are already a few open-source test frameworks that support it.

如果您以使用“剧本模式”而被出售,但不知道如何开始或从何处开始,那就不要担心,因为已经有一些开源测试框架支持它。

Serenity BDD is a Java-based test framework that supports both the Page Object and Screenplay Pattern. It acts as a wrapper on top of Selenium Webdriver for web automation and Cucumber/jBehave for BDD. You can also use it with Appium for mobile and desktop automation — see Appium for Mac and Appium Windows Driver — and REST-assured for RESTful API testing. That’s pretty much everything covered except Windows 7 because Appium Windows Driver only supports Windows 10 and above.

Serenity BDD是基于Java的测试框架,同时支持Page Object和Screenplay Pattern。 它充当用于Web自动化的Selenium Webdriver和用于BDD的Cucumber / jBehave的包装。 您还可以将其与Appium一起用于移动和桌面自动化(请参阅Mac版的 Appium和Appium Windows驱动程序) ,以及针对RESTful API测试需要REST保证的版本。 除了Windows 7之外,几乎所有内容都涵盖在内,因为Appium Windows驱动程序仅支持Windows 10及更高版本。

It also comes in the TypeScript flavour, namely SerenityJS, for those who prefer the language. And if you prefer Puppeteer or its successor Playwright, SerenityJS doesn’t support them at the moment, but there is always an opportunity to extend the framework to include these libraries.

对于喜欢该语言的人来说,它还具有TypeScript风格,即SerenityJS 。 而且,如果您更喜欢Puppeteer或其继任者Playwright ,SerenityJS目前不支持它们,但是总有机会将框架扩展为包括这些库。

Serenity BDD and SerenityJS have already solved part of the problem by giving us a plethora of common actions like hover, double-click, scroll to a target, move mouse to a target, and more. Also, see the available questions and matchers. I have personally used Serenity for a number of years and have been impressed by the built-in functionalities, including a great reporting tool. It also integrates with ngWebDriver to handle asynchronous apps.

Serenity BDD和SerenityJS通过给我们提供了许多常见的动作(例如,悬停,双击,滚动到目标,将鼠标移至目标等等)已经解决了部分问题。 另外,请参阅可用的问题和匹配器 。 我已经使用Serenity多年了,并且对内置功能(包括出色的报告工具)印象深刻。 它还与ngWebDriver集成以处理异步应用程序。

For the missing Windows 7 coverage (after all, it still has a 33.44% share in the market compared to Windows 10 at 55.72%, according to the latest Windows OS Families coverage report by Perfecto Mobile), I recommend using Specflow integrated with FlaUI. Specflow is a great .NET test framework that supports BDD and some additional extensions, although the latter is only available via licensing in Specflow+. Meanwhile, FlaUI is a driver in .NET that uses Microsoft’s UI Automation libraries under the hood to interact with Win32, WinForms, and WPF desktop applications. The good news is there is a project that wraps around Specflow that enables Screenplay Pattern usage called CSF.Screenplay, and it is inspired by Serenity. Therefore, you will be familiar with it right away if you have been working with Serenity. The bad news is, at the time of writing, it only has the extension to work with Selenium WebDriver, so you would have to create the FlaUI extension or wait for someone to contribute to the project.

对于丢失的Windows 7覆盖率(毕竟,它仍然有33.44%的份额在市场上比Windows 10的55.72%,根据最新的Windows操作系统家族覆盖报告由PERFECTO移动),我建议使用Specflow与集成FlaUI 。 Specflow是一个出色的.NET测试框架,支持BDD和其他一些扩展,尽管后者只能通过Specflow +中的许可获得。 同时,FlaUI是.NET中的驱动程序,它使用Microsoft的UI自动化库在后台与Win32,WinForms和WPF桌面应用程序进行交互。 好消息是,有一个围绕Specflow的项目,它启用了名为CSF.Screenplay的 Screenplay Pattern用法,它的灵感来自于Serenity。 因此,如果您一直在与Serenity合作,您将立即熟悉它。 坏消息是,在撰写本文时,它仅具有与Selenium WebDriver一起使用的扩展 ,因此您将必须创建FlaUI扩展或等待有人为该项目做出贡献。

综上所述 (In Summary)

Teams should start collaborating and not working in silos, as is often the case when it comes to automating tests. Having a single test approach is crucial, and we have seen in this article why the Screenplay Pattern is the cornerstone of a successful automation collaboration.

团队应该开始协作,而不是孤零零地工作,这是自动化测试的常见情况。 拥有单一测试方法至关重要,我们已经在本文中看到了为什么“剧本模式”是成功进行自动化协作的基石。

In short, use the Serenity BDD Java test framework. Offer SerenityJS as well if you have the extra capacity to let testers work with TypeScript. And finally, add the support for FlaUI via CSF.Screenplay if you care about your Windows 7 user base.

简而言之,请使用Serenity BDD Java测试框架。 如果您有足够的能力让测试人员使用TypeScript,也可以提供SerenityJS。 最后,如果您关心Windows 7用户群,请通过CSF.Screenplay添加对FlaUI的支持。

资源资源 (Resources)

翻译自: https://medium.com/better-programming/scaling-automated-tests-beyond-a-single-project-61adb05546e8

compose安装单个扩展

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. HTML5面试题

    HTML5面试题 一、 Doctype的作用? 严格模式和混杂模式的区分,以及如何触发这2种模式? 声明位于文档中的最前面,处于 标签之前。告知浏览器的解析器,用什么文档类型 规范来解析这个文档。 DOCTYPE不存在或格式不正确会导致文档以混杂模式呈…...

    2024/4/21 3:01:57
  2. AngularJS实战项目(Ⅰ)--含源码

    前言 钻研ABP框架的日子,遇到了很多新的知识,因为对自己而言是新知识,所以经常卡在很多地方,迟迟不能有所突破,作为一个稍有上进心的程序员,内心绝对是不服输的,也绝对是不畏困难的,…...

    2024/4/21 3:01:56
  3. LDA-线性判别分析

    <div id"container"><div id"header"><div class"header"><div id"blog_title"><h2><a href"http://blog.csdn.net/porly">porly的专栏</a></h2><h3></h3><…...

    2024/4/24 19:36:33
  4. 简历资料

    专业技能 1.移动端前端开发&#xff0c;PC端前端开发 在阿里的几次面试中&#xff0c;总是被问到移动端和PC端有什么区别&#xff0c;当时回答的时候主要是回答了在兼容性、网速、适配、页面布局 等方面的不同&#xff0c;但是还是很不系统&#xff0c;所以这里做一个总结。 …...

    2024/5/3 3:20:55
  5. [前端] 记录工作中遇到的各种问题(Bug,总结,记录)

    最近一年&#xff0c;在开发实践过程中遇到了不少问题&#xff0c;大多都能得到解决 部分知其原理&#xff0c;部分只能做到解决问题&#xff0c;而半年前遇到的问题&#xff0c;或多或少都忘得差不多了 是该记录一下一些问题&#xff0c;防止再遇到就得再查资料了 1. 浏览器在…...

    2024/4/20 20:14:03
  6. 前端设计与编码规范

    V1.2 Suming Lv [TOC]目录 0.0 总体原则 0.1 核心思想 表现、内容和行为的分离。 标记应该是结构良好、语义正确 以及 普遍合法。 渐进增强&#xff0c;提高用户体验。 0.2 基本原则 代码一致性&#xff1a; 通过保持代码风格和传统的一致性&#xff0c;我们可以减少遗留系统维…...

    2024/4/20 20:14:02
  7. 观《phonegap第三季 angularjs+ionic视频教程 实时发布》学习笔记(一)

    一、 phonegap 性能优化 以及 phonegap Angularjs ionic 1、安装包括&#xff1a;nodejs-cordova-ionic&#xff0c;sdk&#xff0c;phonegap等等&#xff1b; 2、怎样吧导航设置到底部的解决方案&#xff1b; 3、ionic、JqueryMobile、Sencha的对比&#xff1a;  &#xff0…...

    2024/5/3 2:46:58
  8. 前端知识点小结

    一.HTML,CSS (兼容性) 1. animation animation 属性是一个简写属性&#xff0c;用于设置六个动画属性&#xff1a; animation-nameanimation-durationanimation-timing-functionanimation-delayanimation-iteration-countanimation-direction注释&#xff1a;请始终规定 animat…...

    2024/4/21 3:01:58
  9. angular ionic 轮播图不显示图片或白屏问题

    在ion-slide-box 层上加入ng-if&#xff0c;数据加载后在进行循环...

    2024/4/21 3:01:53
  10. 制作一个含文字和图片的轮播图

    非原生JS制作轮播图 有一定的参考价值&#xff0c;但是不能保证不出错&#xff0c;还请大佬门自己多多尝试 实现3个功能&#xff1a; 1.自动轮播 2.鼠标放上去停止轮播 3.鼠标放在小圆点上实现轮播 原理 一个盒子&#xff08;div&#xff09;放置图片和文字&#xff0c;多个盒…...

    2024/5/2 23:31:51
  11. Angular实现图片点击缩放组件

    Angular实现图片点击缩放组件 本文将设计一个用于网页中点击图片缩放的 Angular 组件。阅读需要注意的是,本文只讲解原理和设计理念,不过多讲解Angular框架的API。 线demo。 需求分析 一般用户在阅读文章的时候,由于种种限制,图片会比较小,所以需要提供一个可以查看图…...

    2024/5/2 22:25:00
  12. Angular4.x+Swiper3制作公告栏和轮播图(引用第三方库)

    话不多说&#xff0c;先看一下效果&#xff1a; 上方的轮播图是循环轮播&#xff0c;可以通过手动来控制&#xff0c;而下方的公告栏则无法通过手动控制。一个界面出现两个Swiper组件的需求。 数据来源&#xff1a;图片URL和公告内容都是通过*ngFor命令来读取ts文件中的数据然…...

    2024/4/21 3:01:51
  13. Angular中使用Resolve守卫实现预先获取路由组件所需数据

    Angular官网中描述的使用resolve守卫主要解决的问题如下&#xff1a; 如果你在使用真实 api&#xff0c;很有可能数据返回有延迟&#xff0c;导致无法即时显示。 在这种情况下&#xff0c;直到数据到达前&#xff0c;显示一个空的组件不是最好的用户体验&#xff0c;最好使用解…...

    2024/4/21 3:01:50
  14. Angular cli构建项目

    一&#xff0c;准备阶段。 初始化项目&#xff0c;并尝试运行&#xff1a; ng new myProjectcd myProjectng serve 二&#xff0c;添加外部框架&#xff1a;npm install jquery --save npm install popper.js --save npm install bootstrap --save由于typescript不能直接识别js…...

    2024/4/21 3:01:49
  15. AngularJS轮播图

    2019独角兽企业重金招聘Python工程师标准>>> <!DOCTYPE html> <html ng-app"myApp" lang"en"> <head><meta charset"UTF-8"><title>AngularJS carousel</title><link href"http://libs.…...

    2024/4/21 3:01:47
  16. Angular(3)

    jqLite的使用 -<li ng-repeat"(key,value) in obj" ng-bind-template"{{key}} {{value}}"> </li> 这行代码 在webstorm 编辑器里面会报错 用sublim 不会报错 是这样写不规范 还是只是编辑器自身解析问题呢?页面执行结果没有问题预习资料推荐…...

    2024/4/21 3:01:46
  17. angular中的无缝向上滚动效果

    html代码如下&#xff1a; <div class"slide"><ul class"slide-ul"><demo-slide-follow id"slide1" dataset-data "data"></demo-slide-follow></ul> </div>css代码如下&#xff1a; .slide{h…...

    2024/4/27 19:51:03
  18. ionic实现轮播图效果

    ionic 的js有一个自带的滑动框效果&#xff0c;可以实现手机端&#xff0c;类似于淘宝顶部的轮播图效果&#xff0c;向左滑动上一张、向右下一张。does-continue"true" 表示自动滑动&#xff0c;slide-interval2000 表示等待2000毫秒开始滑动 预览效果&#xff1a;…...

    2024/4/27 16:27:35
  19. ionic实现动态轮播图

    温馨提示 Ionic和angular在不断发展&#xff0c;项目也在不断更新迭代&#xff0c;此文档必然是有时效性的&#xff0c;继而温馨提示读者在使用此文档时&#xff0c;注意项目架构。如有变化&#xff0c;请持续更新此文档。 一.所需资源 Ionic4 二.集成具体步骤 2.html代码 …...

    2024/4/27 18:24:21
  20. Angular2组件与指令的小实践——实现一个图片轮播组件

    如果说模块系统是Angular2的灵魂&#xff0c;那其组件体系就是其躯体&#xff0c;在模块的支持下渲染出所有用户直接看得见的东西&#xff0c;一个项目最表层的东西就是组件呈现的视图。 而除了直接看的见的躯体之外&#xff0c;一个完整的“生物”还需要有感觉器官&#xff0c…...

    2024/4/27 16:04:22

最新文章

  1. 【.Net Core/.Net8教程】(三)如何优雅地校验参数

    FluentValidation是一个流行的开源验证库&#xff0c;用于在.NET应用程序中验证输入数据。 它有如下特点 语法简洁强大的验证功能支持多语言和本地化可重用性和模块化易于集成详细的错误消息扩展性高 借助FluentValidation&#xff0c;我们可以达到优雅地校验参数的目的。 环…...

    2024/5/3 7:18:39
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. Python中大的一把锁

    今天可以来讲解下GIL是个什么了。 GIL为什么是Python中大的一把锁&#xff1f; GIL是Global Interpreter Lock的缩写&#xff0c;翻译过来就是全局解释器锁。 从字面上去理解&#xff0c;它就是锁在解释器头上的一把锁&#xff0c;它使Python代码运行变得有序。 假如有一段…...

    2024/4/29 23:30:40
  4. Mac brew 安装软件

    Mac brew 安装软件 homebrew 速度慢 将brew 切换到国内镜像源 # 速度一般 # 步骤一 cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git# 步骤二 cd "$(brew --repo)/Library/Taps/homebrew/homebr…...

    2024/5/2 2:42:17
  5. C#,简单,精巧,实用的文件夹时间整理工具FolderTime

    点击下载本文软件&#xff08;5积分&#xff09;&#xff1a; https://download.csdn.net/download/beijinghorn/89071073https://download.csdn.net/download/beijinghorn/89071073 百度网盘&#xff08;不需积分&#xff09;&#xff1a; https://pan.baidu.com/s/1FwCsSz…...

    2024/5/1 13:50:22
  6. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/5/1 17:30:59
  7. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/5/2 16:16:39
  8. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/29 2:29:43
  9. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/5/2 9:28:15
  10. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/27 17:58:04
  11. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/27 14:22:49
  12. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/28 1:28:33
  13. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/30 9:43:09
  14. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/27 17:59:30
  15. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/5/2 15:04:34
  16. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/28 1:34:08
  17. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/26 19:03:37
  18. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/29 20:46:55
  19. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/30 22:21:04
  20. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/5/1 4:32:01
  21. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/27 23:24:42
  22. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/28 5:48:52
  23. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/30 9:42:22
  24. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/5/2 9:07:46
  25. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/30 9:42:49
  26. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  27. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  28. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  29. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  30. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  31. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  32. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  33. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  34. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  35. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  36. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  37. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  38. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  39. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  40. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  41. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  42. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  43. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  44. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  45. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57